MCPcopy Create free account
hub / github.com/ajkhoury/ReClassEx / TransferTo

Method TransferTo

ReClass/tinyxml2.cpp:146–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144
145
146void StrPair::TransferTo( StrPair* other )
147{
148 if ( this == other ) {
149 return;
150 }
151 // This in effect implements the assignment operator by "moving"
152 // ownership (as in auto_ptr).
153
154 TIXMLASSERT( other != 0 );
155 TIXMLASSERT( other->_flags == 0 );
156 TIXMLASSERT( other->_start == 0 );
157 TIXMLASSERT( other->_end == 0 );
158
159 other->Reset();
160
161 other->_flags = _flags;
162 other->_start = _start;
163 other->_end = _end;
164
165 _flags = 0;
166 _start = 0;
167 _end = 0;
168}
169
170void StrPair::Reset()
171{

Callers 1

ParseDeepMethod · 0.80

Calls 1

ResetMethod · 0.45

Tested by

no test coverage detected