Skip to content

Commit 9618787

Browse files
committed
projectfiledialog.cpp: fixed performance-unnecessary-copy-initialization clang-tidy warning
1 parent 86a2e0c commit 9618787

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gui/projectfiledialog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ void ProjectFileDialog::loadFromProjectFile(const ProjectFile *projectFile)
322322
mUI->mBtnSafeClasses->setChecked(projectFile->safeChecks.classes);
323323
setExcludedPaths(projectFile->getExcludedPaths());
324324
setLibraries(projectFile->getLibraries());
325-
const QString platform = projectFile->getPlatform();
325+
const QString& platform = projectFile->getPlatform();
326326
if (platform.endsWith(".xml")) {
327327
int i;
328328
for (i = numberOfBuiltinPlatforms; i < mUI->mComboBoxPlatform->count(); ++i) {

0 commit comments

Comments
 (0)