summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-12-17 20:02:50 +0300
committerAndrei Karas <akaras@inbox.ru>2017-12-17 20:02:50 +0300
commit43fede61ac6935298f42d31c508cf7a499f1dbb5 (patch)
tree7f854bbc8b05be4abdc29573f2e6c68d711b8d25
parent58c319a56a70588b59868099c659f70209a60be1 (diff)
downloadmanaverse-43fede61ac6935298f42d31c508cf7a499f1dbb5.tar.gz
manaverse-43fede61ac6935298f42d31c508cf7a499f1dbb5.tar.bz2
manaverse-43fede61ac6935298f42d31c508cf7a499f1dbb5.tar.xz
manaverse-43fede61ac6935298f42d31c508cf7a499f1dbb5.zip
Remove default parameter from translationmanager.
-rw-r--r--src/utils/translation/translationmanager.cpp6
-rw-r--r--src/utils/translation/translationmanager.h2
2 files changed, 4 insertions, 4 deletions
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();