| 348 | } // namespace |
| 349 | |
| 350 | ProjectSerializer::ProjectSerializer(size_t allocSize) |
| 351 | { |
| 352 | static std::once_flag flag; |
| 353 | std::call_once(flag, []{ |
| 354 | // Just once per run, store header information in the unique static |
| 355 | // dictionary that will be written into each project that is saved. |
| 356 | // Store the size of "wxStringCharType" so we can convert during recovery |
| 357 | // in case the file is used on a system with a different character size. |
| 358 | char size = sizeof(wxStringCharType); |
| 359 | mDict.AppendByte(FT_CharSize); |
| 360 | mDict.AppendData(&size, 1); |
| 361 | }); |
| 362 | |
| 363 | mDictChanged = false; |
| 364 | } |
| 365 | |
| 366 | ProjectSerializer::~ProjectSerializer() |
| 367 | { |
nothing calls this directly
no test coverage detected