From 3cb41b9b041d1eb8f4aa71e537a0e725ba6d2f2a Mon Sep 17 00:00:00 2001 From: firewave Date: Thu, 23 May 2024 12:12:38 +0200 Subject: [PATCH] projectfiledialog.cpp: fixed `performance-unnecessary-copy-initialization` clang-tidy warning --- gui/projectfiledialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/projectfiledialog.cpp b/gui/projectfiledialog.cpp index 0cad08a21519..4f717f4c451e 100644 --- a/gui/projectfiledialog.cpp +++ b/gui/projectfiledialog.cpp @@ -322,7 +322,7 @@ void ProjectFileDialog::loadFromProjectFile(const ProjectFile *projectFile) mUI->mBtnSafeClasses->setChecked(projectFile->safeChecks.classes); setExcludedPaths(projectFile->getExcludedPaths()); setLibraries(projectFile->getLibraries()); - const QString platform = projectFile->getPlatform(); + const QString& platform = projectFile->getPlatform(); if (platform.endsWith(".xml")) { int i; for (i = numberOfBuiltinPlatforms; i < mUI->mComboBoxPlatform->count(); ++i) {