From 866aeff1ae9a2088e227db2213cf81508371c190 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Wed, 15 Dec 2021 20:43:25 +0100 Subject: [PATCH] GUI: Fix selfcheck shadowVariable warning --- gui/mainwindow.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index 08e9fe3e3..da37e211b 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -852,8 +852,7 @@ Settings MainWindow::getCppcheckSettings() Settings result; - const QString applicationFilePath = QCoreApplication::applicationFilePath(); - result.exename = applicationFilePath.toStdString(); + result.exename = QCoreApplication::applicationFilePath().toStdString(); const bool std = tryLoadLibrary(&result.library, "std.cfg"); bool posix = true;