ResourceEditor: use const reference for QMap argument

Change-Id: I04d2c7de47bc91fd8f6fa355a03fc0d19681f451
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
Tim Jenssen
2017-02-09 13:36:09 +01:00
parent 54248a92e7
commit d864bfc529
2 changed files with 4 additions and 4 deletions

View File

@@ -649,8 +649,8 @@ ResourceFolderNode *SimpleResourceFolderNode::prefixNode() const
return m_prefixNode;
}
void SimpleResourceFolderNode::addFilesAndSubfolders(QMap<PrefixFolderLang, QList<ProjectExplorer::FolderNode*> > foldersToAdd,
QMap<PrefixFolderLang, QList<ProjectExplorer::Node*> > nodesToAdd,
void SimpleResourceFolderNode::addFilesAndSubfolders(const QMap<PrefixFolderLang, QList<ProjectExplorer::FolderNode*> > &foldersToAdd,
const QMap<PrefixFolderLang, QList<ProjectExplorer::Node*> > &nodesToAdd,
const QString &prefix, const QString &lang)
{
setNodes(nodesToAdd.value(PrefixFolderLang(prefix, m_folderName, lang)));