cppcheck: version bump, add z3.
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
--- a/gui/CMakeLists.txt 2020-05-10 12:31:19.000000000 +0300
|
||||
+++ b/gui/CMakeLists.txt 2020-05-28 16:22:24.704402614 +0300
|
||||
@@ -37,7 +37,7 @@
|
||||
diff --git a/gui/CMakeLists.txt b/gui/CMakeLists.txt
|
||||
index 9cd93a21f..d07094a00 100644
|
||||
--- a/gui/CMakeLists.txt
|
||||
+++ b/gui/CMakeLists.txt
|
||||
@@ -40,7 +40,7 @@ if (BUILD_GUI)
|
||||
endif()
|
||||
|
||||
install(TARGETS cppcheck-gui RUNTIME DESTINATION ${CMAKE_INSTALL_FULL_BINDIR} COMPONENT applications)
|
||||
@@ -9,11 +11,13 @@
|
||||
|
||||
install(FILES cppcheck-gui.desktop DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/applications)
|
||||
|
||||
--- a/gui/translationhandler.cpp 2020-05-28 16:29:27.334549404 +0300
|
||||
+++ b/gui/translationhandler.cpp 2020-05-28 16:27:15.183706532 +0300
|
||||
@@ -116,15 +116,16 @@
|
||||
if (datadir.isEmpty())
|
||||
datadir = appPath;
|
||||
diff --git a/gui/translationhandler.cpp b/gui/translationhandler.cpp
|
||||
index d12fb7057..626f8641a 100644
|
||||
--- a/gui/translationhandler.cpp
|
||||
+++ b/gui/translationhandler.cpp
|
||||
@@ -113,15 +113,16 @@ bool TranslationHandler::setLanguage(const QString &code)
|
||||
|
||||
QString datadir = getDataDir();
|
||||
|
||||
- QString translationFile;
|
||||
- if (QFile::exists(datadir + "/lang/" + mTranslations[index].mFilename + ".qm"))
|
||||
@@ -30,8 +34,8 @@
|
||||
- else
|
||||
- translationFile = appPath + "/" + mTranslations[index].mFilename + ".qm";
|
||||
+// else
|
||||
+// translationFile = appPath + "/" + mTranslations[index].mFilename + ".qm";
|
||||
+ QString translationFile("/usr/share/Cppcheck/lang/" + mTranslations[index].mFilename + ".qm");
|
||||
+// translationFile = appPath + "/" + mTranslations[index].mFilename + ".qm";
|
||||
+ QString translationFile("/usr/share/Cppcheck/lang/" + mTranslations[index].mFilename + ".qm");
|
||||
|
||||
if (!mTranslator->load(translationFile) && !failure) {
|
||||
//If it failed, lets check if the default file exists
|
||||
|
||||
Reference in New Issue
Block a user