fix using move semantics for no reason
This commit is contained in:
parent
0c7721cb17
commit
2f17a17587
2 changed files with 5 additions and 5 deletions
|
@ -36,7 +36,7 @@ public:
|
|||
bool setFromVisual( const unitVis_c& vis);
|
||||
|
||||
// Factory function for creating units from a visual
|
||||
static CUnit&& getUnitFromVis( unitVis_c vis );
|
||||
static CUnit getUnitFromVis( unitVis_c vis );
|
||||
|
||||
|
||||
protected:
|
||||
|
@ -75,4 +75,4 @@ inline bool CUnit::valid() const
|
|||
&& (unit_vis != unitVis_invalid);
|
||||
}
|
||||
|
||||
#endif //_UNIT_H_
|
||||
#endif //_UNIT_H_
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue