summaryrefslogtreecommitdiffstats
path: root/office/kbgoffice/gcc6.patch
diff options
context:
space:
mode:
author Matteo Bernardini2020-09-05 12:00:48 +0200
committer Matteo Bernardini2020-09-05 12:00:48 +0200
commit839043f491ef6b69aa53a28544e6840d94aa994f (patch)
treef71ca459b3f1d8ad0534ec73884c06f09fc7b148 /office/kbgoffice/gcc6.patch
parentd52c3f21bc810174eab256ff9fc51b3fe3904ddc (diff)
downloadslackbuilds-8bd3047252e157bc93f1080e04d6fc77e5a77cd5.tar.gz
20200905.1 global branch merge.current-20200905.1
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'office/kbgoffice/gcc6.patch')
-rw-r--r--office/kbgoffice/gcc6.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/office/kbgoffice/gcc6.patch b/office/kbgoffice/gcc6.patch
new file mode 100644
index 0000000000..6e2d45e572
--- /dev/null
+++ b/office/kbgoffice/gcc6.patch
@@ -0,0 +1,17 @@
+diff -Naur kbgoffice-2.1.orig/src/translator_manager.cpp kbgoffice-2.1/src/translator_manager.cpp
+--- kbgoffice-2.1.orig/src/translator_manager.cpp 2010-04-30 14:37:42.000000000 +0200
++++ kbgoffice-2.1/src/translator_manager.cpp 2017-06-01 18:10:20.308920738 +0200
+@@ -141,11 +141,11 @@
+ isDataOk = isDataOk && tr->init(tr->BG_EN, string(string(dataDir) + prop->getString("data")).c_str());
+ } else {
+ cerr << "TranslatorManager::getTestDictionaryObject - Wrong description file: " << testDictionaries[index].file << "\n";
+- return false;
++ return NULL;
+ }
+ if (!isDataOk) {
+ cerr << "TranslatorManager::getTestDictionaryObject - Problem initialazing dictionary: " << testDictionaries[index].file << "\n";
+- return false;
++ return NULL;
+ }
+ char c[16];
+ sprintf(c, "%d", level);