aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmakeprojectmanager/qmakeparsernodes.h
diff options
context:
space:
mode:
authorChristian Kandeler <[email protected]>2019-10-29 17:11:00 +0100
committerChristian Kandeler <[email protected]>2019-11-04 13:37:17 +0000
commit03a52b9c8725992408f0087294ab1bc5be9159e6 (patch)
tree827c5b4db6621e9a4886614af1e9c4bc6c545b4a /src/plugins/qmakeprojectmanager/qmakeparsernodes.h
parent5e4d13f3439086fcec08f1598b3605f766843da8 (diff)
QmakeProjectManager: Improve renaming functionality
This was implemented rather sloppily: The file was removed from all variables, but only added to one. Also, no care was taken to insert the new file name into the same block the old one was removed from. Fixes: QTCREATORBUG-19257 Change-Id: Ib309389ba7647189112d5c7dd7b3e784f921d2c3 Reviewed-by: Joerg Bornemann <[email protected]>
Diffstat (limited to 'src/plugins/qmakeprojectmanager/qmakeparsernodes.h')
-rw-r--r--src/plugins/qmakeprojectmanager/qmakeparsernodes.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/plugins/qmakeprojectmanager/qmakeparsernodes.h b/src/plugins/qmakeprojectmanager/qmakeparsernodes.h
index a6e7fa4ad56..538d1a65e91 100644
--- a/src/plugins/qmakeprojectmanager/qmakeparsernodes.h
+++ b/src/plugins/qmakeprojectmanager/qmakeparsernodes.h
@@ -192,10 +192,7 @@ protected:
};
enum class Change { Save, TestOnly };
- bool renameFile(const QString &oldName,
- const QString &newName,
- const QString &mimeType,
- Change mode = Change::Save);
+ bool renameFile(const QString &oldName, const QString &newName, Change mode);
void changeFiles(const QString &mimeType,
const QStringList &filePaths,
QStringList *notChanged,