Changeset 828 in dev for trunk/ab5.0/abdev/ab_common/src/Lexical/Namespace.cpp
- Timestamp:
- Mar 19, 2012, 1:59:48 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property svn:mergeinfo
set to
/branches/egtra merged eligible
-
Property svn:mergeinfo
set to
-
trunk/ab5.0/abdev
-
Property svn:ignore
set to
*.opensdf
*.sdf
*.suo
*.user
int
ipch
out
-
Property svn:ignore
set to
-
trunk/ab5.0/abdev/ab_common/src/Lexical/Namespace.cpp
r736 r828 1 1 #include "stdafx.h" 2 #include <jenga/include/jenga.h> 3 #include <abdev/ab_common/include/ab_common.h> 2 4 #include <algorithm> 3 5 … … 16 18 std::string tempName = namespaceStr.substr( i, i2-i ); 17 19 18 push_back( tempName);20 push_back(std::move(tempName)); 19 21 20 22 if( i2 == std::string::npos ){ … … 26 28 } 27 29 28 NamespaceScopes NamespaceScopes::operator+ ( const NamespaceScopes &namespaceScopes ) const30 NamespaceScopes ActiveBasic::Common::Lexical::operator +(const NamespaceScopes &lhs, const NamespaceScopes &rhs) 29 31 { 30 NamespaceScopes result; 31 result.reserve( this->size() + namespaceScopes.size() ); 32 result = *this; 33 result.append( namespaceScopes ); 34 return result; 32 return NamespaceScopes(lhs) += rhs; 35 33 } 36 34
Note:
See TracChangeset
for help on using the changeset viewer.