Changeset 816 in dev for branches/egtra/ab5.0/abdev/ab_common/src/Lexical/Variable.cpp
- Timestamp:
- Mar 19, 2011, 9:13:12 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/egtra/ab5.0/abdev/ab_common/src/Lexical/Variable.cpp
r640 r816 12 12 { 13 13 } 14 14 15 Variable::Variable( const Variable &var ) 15 16 : RelationalObjectModuleItem( var ) … … 24 25 { 25 26 } 27 28 Variable::Variable(Variable&& var) 29 : RelationalObjectModuleItem(std::move(var)) 30 , type(std::move(var.type)) 31 , isConst(std::move(var.isConst)) 32 , isRef(std::move(var.isRef)) 33 , isArray(std::move(var.isArray)) 34 , subscripts(std::move(var.subscripts)) 35 , isParameter(std::move(var.isParameter)) 36 , paramStrForConstructor(std::move(var.paramStrForConstructor)) 37 , hasInitData(std::move(var.hasInitData)) 38 { 39 } 40 26 41 Variable::Variable() 27 42 { 43 } 44 45 Variable& Variable::operator =(Variable&& var) 46 { 47 RelationalObjectModuleItem::operator =(std::move(var)); 48 type = std::move(var.type); 49 isConst = std::move(var.isConst); 50 isRef = std::move(var.isRef); 51 isArray = std::move(var.isArray); 52 subscripts = std::move(var.subscripts); 53 isParameter = std::move(var.isParameter); 54 paramStrForConstructor = std::move(var.paramStrForConstructor); 55 hasInitData = std::move(var.hasInitData); 56 return *this; 28 57 } 29 58
Note:
See TracChangeset
for help on using the changeset viewer.