From 43fede61ac6935298f42d31c508cf7a499f1dbb5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 17 Dec 2017 20:02:50 +0300 Subject: Remove default parameter from translationmanager. --- src/utils/translation/translationmanager.cpp | 6 +++--- src/utils/translation/translationmanager.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/utils') diff --git a/src/utils/translation/translationmanager.cpp b/src/utils/translation/translationmanager.cpp index d02ff2c02..5877ae3a2 100644 --- a/src/utils/translation/translationmanager.cpp +++ b/src/utils/translation/translationmanager.cpp @@ -43,7 +43,7 @@ void TranslationManager::init() void TranslationManager::loadCurrentLang() { delete translator; - translator = loadLang(getLang(), ""); + translator = loadLang(getLang(), "", nullptr); translator = loadLang(getLang(), "help/", translator); } @@ -51,7 +51,7 @@ void TranslationManager::loadDictionaryLang() { delete dictionary; delete reverseDictionary; - dictionary = loadLang(getServerLang(), "dict/"); + dictionary = loadLang(getServerLang(), "dict/", nullptr); reverseDictionary = reverseLang(dictionary); } @@ -59,7 +59,7 @@ void TranslationManager::loadDictionaryLang() void TranslationManager::loadGettextLang() { delete mainTranslator; - mainTranslator = loadLang(getLang(), "manaplus/"); + mainTranslator = loadLang(getLang(), "manaplus/", nullptr); } #endif // ENABLE_CUSTOMNLS diff --git a/src/utils/translation/translationmanager.h b/src/utils/translation/translationmanager.h index 088d97449..f2f7efd68 100644 --- a/src/utils/translation/translationmanager.h +++ b/src/utils/translation/translationmanager.h @@ -35,7 +35,7 @@ class TranslationManager final static PoDict *loadLang(const LangVect &lang, const std::string &subName, - PoDict *const dict = nullptr); + PoDict *const dict); static void init(); -- cgit v1.2.3-70-g09d2