We make deleting the contents optional as we may just be moving the tags out of here and into a message for sending, in which case we won't delete them.
| 61 | // and into a message for sending, in which case |
| 62 | // we won't delete them. |
| 63 | void DeltaList::Clear(bool deleteContents) |
| 64 | { |
| 65 | if (deleteContents) |
| 66 | { |
| 67 | for (size_t i = 0 ; i < m_DeltaList.size() ; i++) |
| 68 | { |
| 69 | TagWme* pDelta = m_DeltaList[i] ; |
| 70 | delete pDelta ; |
| 71 | } |
| 72 | } |
| 73 | |
| 74 | m_DeltaList.clear() ; |
| 75 | } |
no test coverage detected