diff --git a/cli/cppcheckexecutor.cpp b/cli/cppcheckexecutor.cpp index 30c94d3ab..082f77e6f 100644 --- a/cli/cppcheckexecutor.cpp +++ b/cli/cppcheckexecutor.cpp @@ -155,10 +155,10 @@ int CppCheckExecutor::check(int argc, const char* const argv[]) return EXIT_FAILURE; } - bool std = settings.library.load(argv[0], "std"); + bool std = settings.library.load(argv[0], "std.cfg"); bool posix = true; if (settings.standards.posix) - posix = settings.library.load(argv[0], "posix"); + posix = settings.library.load(argv[0], "posix.cfg"); if (!std || !posix) { const std::list callstack; diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index 9c56a18ee..4cc329d6a 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -565,10 +565,10 @@ Settings MainWindow::GetCppcheckSettings() result.standards.posix = mSettings->value(SETTINGS_STD_POSIX, false).toBool(); const QString applicationFilePath = QCoreApplication::applicationFilePath(); - bool std = result.library.load(applicationFilePath.toLatin1(), "std"); + bool std = result.library.load(applicationFilePath.toLatin1(), "std.cfg"); bool posix = true; if (result.standards.posix) - posix = result.library.load(applicationFilePath.toLatin1(), "posix"); + posix = result.library.load(applicationFilePath.toLatin1(), "posix.cfg"); if (!std || !posix) QMessageBox::warning(this, tr("Error"), tr("Failed to load %1. Your Cppcheck installation is broken.").arg(!std ? "std.cfg" : "posix.cfg"));