summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/translation/translationmanager.cpp2
-rw-r--r--src/utils/translation/translationmanager.h2
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);