summaryrefslogtreecommitdiff
path: root/src/utils
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
parent9ec9cec6b2485654bdee4a828e5a7b0708dcf4f4 (diff)
downloadmv-20dd40fe09e291bb484570075baed2dcf4208537.tar.gz
mv-20dd40fe09e291bb484570075baed2dcf4208537.tar.bz2
mv-20dd40fe09e291bb484570075baed2dcf4208537.tar.xz
mv-20dd40fe09e291bb484570075baed2dcf4208537.zip
Add missing const and static into translation classes.
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/translation/poparser.cpp6
-rw-r--r--src/utils/translation/poparser.h6
2 files changed, 6 insertions, 6 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;
diff --git a/src/utils/translation/poparser.h b/src/utils/translation/poparser.h
index dbf87b531..b4dc8a6bd 100644
--- a/src/utils/translation/poparser.h
+++ b/src/utils/translation/poparser.h
@@ -55,13 +55,13 @@ class PoParser final
bool readMsgStr();
- bool checkLine();
+ bool checkLine() const;
- std::string getFileName(std::string lang) const;
+ static std::string getFileName(std::string lang);
PoDict *getDict() const;
- void convertStr(std::string &str) const;
+ static void convertStr(std::string &str);
// current lang
std::string mLang;