From ad9d50e5f0b12a75353c0172979ea8165d0d5127 Mon Sep 17 00:00:00 2001 From: Tannin Date: Tue, 9 Feb 2016 20:32:26 +0100 Subject: replaced boost&qt foreach-implementations by the c++11 variant --- src/shared/directoryentry.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/shared/directoryentry.cpp') diff --git a/src/shared/directoryentry.cpp b/src/shared/directoryentry.cpp index e081c006..df6a7b5a 100644 --- a/src/shared/directoryentry.cpp +++ b/src/shared/directoryentry.cpp @@ -24,7 +24,6 @@ along with Mod Organizer. If not, see . #include #include #include -#include #define WIN32_LEAN_AND_MEAN #include #include @@ -950,12 +949,12 @@ void FileRegister::removeOriginMulti(std::set indices, int ori // the latter should be faster when there are many files in few directories. since this is called // only when disabling an origin that is probably frequently the case std::set parents; - BOOST_FOREACH (const FileEntry::Ptr &file, removedFiles) { + for (const FileEntry::Ptr &file : removedFiles) { if (file->getParent() != nullptr) { parents.insert(file->getParent()); } } - BOOST_FOREACH (DirectoryEntry *parent, parents) { + for (DirectoryEntry *parent : parents) { parent->removeFiles(indices); } } -- cgit v1.3.1