Gui: use contains() and isEmpty() instead of count() where possible

This commit is contained in:
Benjamin Nauck
2025-03-10 21:39:54 +01:00
parent 02d095f6e2
commit df3c324b7d
16 changed files with 39 additions and 39 deletions

View File

@@ -2602,7 +2602,7 @@ App::Document* Application::reopen(App::Document* doc)
if (name == v.first->FileName.getValue()) {
doc = const_cast<App::Document*>(v.first);
}
if (untouchedDocs.count(v.second)) {
if (untouchedDocs.contains(v.second)) {
if (!v.second->isModified()) {
continue;
}