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;