MCPcopy Create free account
hub / github.com/NanoMichael/MicroTeX / TransferTo

Method TransferTo

src/xml/tinyxml2.cpp:71–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69
70
71void StrPair::TransferTo( StrPair* other ) {
72 if ( this == other ) {
73 return;
74 }
75 // This in effect implements the assignment operator by "moving"
76 // ownership (as in auto_ptr).
77
78 TIXMLASSERT( other->_flags == 0 );
79 TIXMLASSERT( other->_start == 0 );
80 TIXMLASSERT( other->_end == 0 );
81
82 other->Reset();
83
84 other->_flags = _flags;
85 other->_start = _start;
86 other->_end = _end;
87
88 _flags = 0;
89 _start = 0;
90 _end = 0;
91}
92
93void StrPair::Reset() {
94 if ( _flags & NEEDS_DELETE ) {

Callers 1

ParseDeepMethod · 0.80

Calls 1

ResetMethod · 0.80

Tested by

no test coverage detected