| 55 | |
| 56 | private: |
| 57 | char* prepareForNewValue() |
| 58 | { |
| 59 | // Do not delete old strings buffer because strings from it |
| 60 | // may be used in status vector passed to current save() call. |
| 61 | // I.e. strings should be first saved in new dynamic buffer and only afterwards |
| 62 | // old buffer may be released. |
| 63 | char* oldBuffer = findDynamicStrings(this->getCount(), this->begin()); |
| 64 | this->resize(0); |
| 65 | return oldBuffer; |
| 66 | } |
| 67 | |
| 68 | public: |
| 69 | void clear() |