Implement "move" equivalent of assignment operator for StrPair

This commit is contained in:
Dmitry-Me
2014-11-10 11:17:21 +03:00
parent 97cfa03865
commit 08b40dd8a5
2 changed files with 29 additions and 1 deletions

View File

@@ -184,6 +184,8 @@ public:
char* ParseText( char* in, const char* endTag, int strFlags );
char* ParseName( char* in );
void TransferTo( StrPair& other );
private:
void Reset();
void CollapseWhitespace();
@@ -197,6 +199,9 @@ private:
int _flags;
char* _start;
char* _end;
StrPair( const StrPair& other ); // not supported
void operator=( StrPair& other ); // not supported, use TransferTo()
};