diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-09-20 20:50:50 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-09-20 20:50:50 +0300 |
commit | 4b19b15936faa8e1d5f331cc11147ccfc360bde7 (patch) | |
tree | e601b548c0c55a7e434b30cfff328ca5e3662bee /src/utils | |
parent | 042c4f09e34157522692d6f99f5c51bc04e8f27a (diff) | |
download | plus-4b19b15936faa8e1d5f331cc11147ccfc360bde7.tar.gz plus-4b19b15936faa8e1d5f331cc11147ccfc360bde7.tar.bz2 plus-4b19b15936faa8e1d5f331cc11147ccfc360bde7.tar.xz plus-4b19b15936faa8e1d5f331cc11147ccfc360bde7.zip |
improve a bit code speed.
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/translation/translationmanager.cpp | 2 | ||||
-rw-r--r-- | src/utils/translation/translationmanager.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/translation/translationmanager.cpp b/src/utils/translation/translationmanager.cpp index 551511571..0a5e7bca5 100644 --- a/src/utils/translation/translationmanager.cpp +++ b/src/utils/translation/translationmanager.cpp @@ -53,7 +53,7 @@ void TranslationManager::close() translator = nullptr; } -PoDict *TranslationManager::loadLang(LangVect lang, +PoDict *TranslationManager::loadLang(const LangVect &lang, const std::string &subName, PoDict *const dict) { diff --git a/src/utils/translation/translationmanager.h b/src/utils/translation/translationmanager.h index 8d890fbd7..682d6ceb3 100644 --- a/src/utils/translation/translationmanager.h +++ b/src/utils/translation/translationmanager.h @@ -30,7 +30,7 @@ class PoDict; class TranslationManager final { public: - static PoDict *loadLang(StringVect lang, + static PoDict *loadLang(const StringVect &lang, const std::string &subName, PoDict *const dict = nullptr); |