gcc6.patch 935 B

123456789101112131415161718
  1. diff -Naur kbgoffice-2.1.orig/src/translator_manager.cpp kbgoffice-2.1/src/translator_manager.cpp
  2. --- kbgoffice-2.1.orig/src/translator_manager.cpp 2010-04-30 14:37:42.000000000 +0200
  3. +++ kbgoffice-2.1/src/translator_manager.cpp 2017-06-01 18:10:20.308920738 +0200
  4. @@ -141,11 +141,11 @@
  5. isDataOk = isDataOk && tr->init(tr->BG_EN, string(string(dataDir) + prop->getString("data")).c_str());
  6. } else {
  7. cerr << "TranslatorManager::getTestDictionaryObject - Wrong description file: " << testDictionaries[index].file << "\n";
  8. - return false;
  9. + return NULL;
  10. }
  11. if (!isDataOk) {
  12. cerr << "TranslatorManager::getTestDictionaryObject - Problem initialazing dictionary: " << testDictionaries[index].file << "\n";
  13. - return false;
  14. + return NULL;
  15. }
  16. char c[16];
  17. sprintf(c, "%d", level);