Ignore:
Timestamp:
Feb 14, 2011, 12:58:25 AM (14 years ago)
Author:
イグトランス (egtra)
Message:

ムーブコンストラクタ・ムーブ代入演算子の導入

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/egtra/ab5.0/abdev/ab_common/src/Lexical/Namespace.cpp

    r736 r810  
    1616        std::string tempName = namespaceStr.substr( i, i2-i );
    1717
    18         push_back( tempName );
     18        push_back(std::move(tempName));
    1919
    2020        if( i2 == std::string::npos ){
     
    2626}
    2727
    28 NamespaceScopes NamespaceScopes::operator+ ( const NamespaceScopes &namespaceScopes ) const
     28NamespaceScopes ActiveBasic::Common::Lexical::operator +(const NamespaceScopes &lhs, const NamespaceScopes &rhs)
    2929{
    30     NamespaceScopes result;
    31     result.reserve( this->size() + namespaceScopes.size() );
    32     result = *this;
    33     result.append( namespaceScopes );
    34     return result;
     30    return NamespaceScopes(lhs) += rhs;
    3531}
    3632
Note: See TracChangeset for help on using the changeset viewer.