summaryrefslogtreecommitdiff
path: root/src/utils/translation/poparser.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-02-02 12:48:39 +0300
committerAndrei Karas <akaras@inbox.ru>2014-02-02 12:48:39 +0300
commit20dd40fe09e291bb484570075baed2dcf4208537 (patch)
tree03a0ad92271b097f957d2b74ee38f775a9d592e3 /src/utils/translation/poparser.cpp
parent9ec9cec6b2485654bdee4a828e5a7b0708dcf4f4 (diff)
downloadmanaplus-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.cpp6
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;