Not thread-safe, use synchronization.
| 109 | |
| 110 | /// Not thread-safe, use synchronization. |
| 111 | bool Save(std::string const & fileName, std::list<editor::Note> const & notes, uint32_t const uploadedNotesCount) |
| 112 | { |
| 113 | pugi::xml_document xml; |
| 114 | SaveToXml(notes, xml, uploadedNotesCount); |
| 115 | return base::WriteToTempAndRenameToFile( |
| 116 | fileName, [&xml](std::string const & fileName) { return xml.save_file(fileName.data(), " "); }); |
| 117 | } |
| 118 | } // namespace |
| 119 | |
| 120 | namespace editor |