src/toolsets/filetoolset.cpp

changeset 1428
ece049033adc
parent 1326
69a90bd2dba2
child 1432
4cc687851fbb
equal deleted inserted replaced
1427:b7ba2af33c13 1428:ece049033adc
70 m_window->save(currentDocument(), true); 70 m_window->save(currentDocument(), true);
71 } 71 }
72 72
73 void FileToolset::saveAll() 73 void FileToolset::saveAll()
74 { 74 {
75 for (LDDocument* document : m_documents->allDocuments()) 75 for (auto& document : *m_documents)
76 m_window->save(document, false); 76 m_window->save(document.get(), false);
77 } 77 }
78 78
79 void FileToolset::close() 79 void FileToolset::close()
80 { 80 {
81 if (currentDocument()->isSafeToClose()) 81 if (currentDocument()->isSafeToClose())

mercurial