* Copy tempStacks for the copy constructor. * The value of the vectors must also be copied. */
| 1359 | * The value of the vectors must also be copied. |
| 1360 | */ |
| 1361 | vector<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 |
nothing calls this directly
no outgoing calls
no test coverage detected