diff options
Diffstat (limited to 'testing/cppcheck/set_datadir.patch')
-rw-r--r-- | testing/cppcheck/set_datadir.patch | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/testing/cppcheck/set_datadir.patch b/testing/cppcheck/set_datadir.patch index c00e5433fa..3ffe79e593 100644 --- a/testing/cppcheck/set_datadir.patch +++ b/testing/cppcheck/set_datadir.patch @@ -1,5 +1,5 @@ ---- cppcheck-1.68-origin/gui/main.cpp -+++ cppcheck-1.68/gui/main.cpp +--- cppcheck-1.73-origin/gui/main.cpp ++++ cppcheck-1.73/gui/main.cpp @@ -57,12 +57,18 @@ QSettings* settings = new QSettings("Cppcheck", "Cppcheck-GUI", &app); @@ -7,7 +7,7 @@ + if ((settings->value("DATADIR", QString()).toString()).isEmpty()) + settings->setValue("DATADIR", "/usr/share/cppcheck"); + - foreach(const QString arg, app.arguments()) { + foreach (const QString arg, app.arguments()) { if (arg.startsWith("--data-dir=")) { settings->setValue("DATADIR", arg.mid(11)); return 0; |