diff --git a/src/plugins/resourceeditor/qrceditor/resourcefile.cpp b/src/plugins/resourceeditor/qrceditor/resourcefile.cpp index 57c5ea86c97..33adbd382c7 100644 --- a/src/plugins/resourceeditor/qrceditor/resourcefile.cpp +++ b/src/plugins/resourceeditor/qrceditor/resourcefile.cpp @@ -341,7 +341,7 @@ void ResourceFile::replaceAlias(int prefix_idx, int file_idx, const QString &ali fileList[file_idx]->alias = alias; } -bool ResourceFile::renameFile(const QString fileName, const QString &newFileName) +bool ResourceFile::renameFile(const QString &fileName, const QString &newFileName) { bool success = true; diff --git a/src/plugins/resourceeditor/qrceditor/resourcefile_p.h b/src/plugins/resourceeditor/qrceditor/resourcefile_p.h index e1b14c43c16..5ee82563dfb 100644 --- a/src/plugins/resourceeditor/qrceditor/resourcefile_p.h +++ b/src/plugins/resourceeditor/qrceditor/resourcefile_p.h @@ -159,7 +159,7 @@ public: bool replacePrefixAndLang(int prefix_idx, const QString &prefix, const QString &lang); void replaceAlias(int prefix_idx, int file_idx, const QString &alias); - bool renameFile(const QString fileName, const QString &newFileName); + bool renameFile(const QString &fileName, const QString &newFileName); void replaceFile(int pref_idx, int file_idx, const QString &file); int indexOfPrefix(const QString &prefix, const QString &lang) const;