summaryrefslogtreecommitdiff
path: root/src/utils/translation
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-06-13 17:57:32 +0300
committerAndrei Karas <akaras@inbox.ru>2017-06-13 17:57:32 +0300
commitc4d8fa788e0f89d73ba5ae2b66b79ad0351c5fbf (patch)
tree37b78a9b847d938b5a34acf2f000fef3f31eef44 /src/utils/translation
parent1302ad311b666459c4de36420af09c2a1e7867d0 (diff)
downloadplus-c4d8fa788e0f89d73ba5ae2b66b79ad0351c5fbf.tar.gz
plus-c4d8fa788e0f89d73ba5ae2b66b79ad0351c5fbf.tar.bz2
plus-c4d8fa788e0f89d73ba5ae2b66b79ad0351c5fbf.tar.xz
plus-c4d8fa788e0f89d73ba5ae2b66b79ad0351c5fbf.zip
Add missing const references to constructor parameters.
Diffstat (limited to 'src/utils/translation')
-rw-r--r--src/utils/translation/podict.cpp2
-rw-r--r--src/utils/translation/podict.h2
2 files changed, 2 insertions, 2 deletions
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 <std::string, std::string> PoMap;
class PoDict final
{
public:
- explicit PoDict(std::string lang);
+ explicit PoDict(const std::string &lang);
A_DELETE_COPY(PoDict)