QmakeProject: Fix CentralFolderWatcher

Make the loop actually iterate over something:-)

Change-Id: I9e7ff40c3e5c3860a99bca15e381c1e12eed4d51
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Tobias Hunger
2017-02-10 11:15:06 +01:00
parent b2a33d3118
commit 0b6eb21388

View File

@@ -1055,9 +1055,8 @@ void CentralizedFolderWatcher::unwatchFolders(const QList<QString> &folders, Qma
// So the rwf is a subdirectory of a folder we aren't watching // So the rwf is a subdirectory of a folder we aren't watching
// but maybe someone else wants us to watch // but maybe someone else wants us to watch
bool needToWatch = false; bool needToWatch = false;
QMultiMap<QString, QmakePriFileNode *>::const_iterator it, end; auto end = m_map.constEnd();
end = m_map.constEnd(); for (auto it = m_map.constBegin(); it != end; ++it) {
for (it = m_map.constEnd(); it != end; ++it) {
if (rwf.startsWith(it.key())) { if (rwf.startsWith(it.key())) {
needToWatch = true; needToWatch = true;
break; break;