diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index b42a81a232c..5a80a9d450e 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -1751,7 +1751,7 @@ void MainWindow::analyzeProject(const ProjectFile *projectFile, const bool check Settings::terminate(false); QFileInfo inf(projectFile->getFilename()); - const QString rootpath = projectFile->getRootPath(); + const QString& rootpath = projectFile->getRootPath(); QDir::setCurrent(inf.absolutePath());