StorageLocal ------------------------------------------------------------------------------------
| 24 | { |
| 25 | // StorageLocal ------------------------------------------------------------------------------------ |
| 26 | bool LocalStorage::Save(xml_document const & doc) |
| 27 | { |
| 28 | auto const editorFilePath = GetEditorFilePath(); |
| 29 | |
| 30 | std::lock_guard<std::mutex> guard(m_mutex); |
| 31 | |
| 32 | return base::WriteToTempAndRenameToFile(editorFilePath, [&doc](std::string const & fileName) |
| 33 | { return doc.save_file(fileName.data(), " " /* indent */); }); |
| 34 | } |
| 35 | |
| 36 | bool LocalStorage::Load(xml_document & doc) |
| 37 | { |
nothing calls this directly
no test coverage detected