diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-01 15:14:16 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-01 23:42:37 +0300 |
commit | f9030497b6196ce2fadb6b6ada5d784be227d9a6 (patch) | |
tree | d11408b35d0860709d31e6520578cdd28391f151 /src/utils/translation/poparser.h | |
parent | f52ca7838789a6910840597a929ecf6e0be9e1de (diff) | |
download | manaplus-f9030497b6196ce2fadb6b6ada5d784be227d9a6.tar.gz manaplus-f9030497b6196ce2fadb6b6ada5d784be227d9a6.tar.bz2 manaplus-f9030497b6196ce2fadb6b6ada5d784be227d9a6.tar.xz manaplus-f9030497b6196ce2fadb6b6ada5d784be227d9a6.zip |
Add missing const.
Diffstat (limited to 'src/utils/translation/poparser.h')
-rw-r--r-- | src/utils/translation/poparser.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/utils/translation/poparser.h b/src/utils/translation/poparser.h index 41598442b..d57dde061 100644 --- a/src/utils/translation/poparser.h +++ b/src/utils/translation/poparser.h @@ -39,15 +39,15 @@ class PoParser final const std::string &restrict fileName = "", PoDict *restrict const dict = nullptr); - static bool checkLang(std::string lang); + static bool checkLang(const std::string &lang); static PoDict *getEmptyDict(); private: - void setLang(std::string lang) + void setLang(const std::string &lang) { mLang = lang; } - void openFile(std::string name); + void openFile(const std::string &name); bool readLine(); @@ -57,7 +57,7 @@ class PoParser final bool checkLine() const; - static std::string getFileName(std::string lang); + static std::string getFileName(const std::string &lang); PoDict *getDict() const; |