forked from qt-creator/qt-creator
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:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user