From c4d8fa788e0f89d73ba5ae2b66b79ad0351c5fbf Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 13 Jun 2017 17:57:32 +0300 Subject: Add missing const references to constructor parameters. --- src/utils/translation/podict.cpp | 2 +- src/utils/translation/podict.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/utils') diff --git a/src/utils/translation/podict.cpp b/src/utils/translation/podict.cpp index 56fd42467..cd374319f 100644 --- a/src/utils/translation/podict.cpp +++ b/src/utils/translation/podict.cpp @@ -31,7 +31,7 @@ PoDict *reverseDictionary = nullptr; PoDict *mainTranslator = nullptr; #endif // ENABLE_CUSTOMNLS -PoDict::PoDict(std::string lang) : +PoDict::PoDict(const std::string &lang) : mPoLines(), mLang(lang) { diff --git a/src/utils/translation/podict.h b/src/utils/translation/podict.h index d40aa1499..d8f47b896 100644 --- a/src/utils/translation/podict.h +++ b/src/utils/translation/podict.h @@ -31,7 +31,7 @@ typedef std::map PoMap; class PoDict final { public: - explicit PoDict(std::string lang); + explicit PoDict(const std::string &lang); A_DELETE_COPY(PoDict) -- cgit v1.2.3-70-g09d2