diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-02-02 12:48:39 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-02-02 12:48:39 +0300 |
commit | 20dd40fe09e291bb484570075baed2dcf4208537 (patch) | |
tree | 03a0ad92271b097f957d2b74ee38f775a9d592e3 /src/utils/translation/poparser.cpp | |
parent | 9ec9cec6b2485654bdee4a828e5a7b0708dcf4f4 (diff) | |
download | manaplus-20dd40fe09e291bb484570075baed2dcf4208537.tar.gz manaplus-20dd40fe09e291bb484570075baed2dcf4208537.tar.bz2 manaplus-20dd40fe09e291bb484570075baed2dcf4208537.tar.xz manaplus-20dd40fe09e291bb484570075baed2dcf4208537.zip |
Add missing const and static into translation classes.
Diffstat (limited to 'src/utils/translation/poparser.cpp')
-rw-r--r-- | src/utils/translation/poparser.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utils/translation/poparser.cpp b/src/utils/translation/poparser.cpp index 76dae99a5..abe9fdf26 100644 --- a/src/utils/translation/poparser.cpp +++ b/src/utils/translation/poparser.cpp @@ -214,7 +214,7 @@ bool PoParser::readMsgStr() return false; } -bool PoParser::checkLine() +bool PoParser::checkLine() const { const size_t sz = mLine.size(); // check is line in format: "text" @@ -233,7 +233,7 @@ bool PoParser::checkLang(std::string lang) const return resman->exists(getFileName(lang)); } -std::string PoParser::getFileName(std::string lang) const +std::string PoParser::getFileName(std::string lang) { // get po file name from lang name // logger->log("getFileName: translations/%s.po", lang.c_str()); @@ -245,7 +245,7 @@ PoDict *PoParser::getDict() const return new PoDict(mLang); } -void PoParser::convertStr(std::string &str) const +void PoParser::convertStr(std::string &str) { if (str.empty()) return; |