MCPcopy Create free account
hub / github.com/dirkvranckaert/AndroidDecompiler / copyTempStacks

Method copyTempStacks

astyle/src/ASBeautifier.cpp:1361–1374  ·  view source on GitHub ↗

* Copy tempStacks for the copy constructor. * The value of the vectors must also be copied. */

Source from the content-addressed store, hash-verified

1359 * The value of the vectors must also be copied.
1360 */
1361vector<vector<const string*>*>* ASBeautifier::copyTempStacks(const ASBeautifier &other) const
1362{
1363 vector<vector<const string*>*>* tempStacksNew = new vector<vector<const string*>*>;
1364 vector<vector<const string*>*>::iterator iter;
1365 for (iter = other.tempStacks->begin();
1366 iter != other.tempStacks->end();
1367 ++iter)
1368 {
1369 vector<const string*>* newVec = new vector<const string*>;
1370 *newVec = **iter;
1371 tempStacksNew->push_back(newVec);
1372 }
1373 return tempStacksNew;
1374}
1375
1376/**
1377 * delete a member vectors to eliminate memory leak reporting

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected