summaryrefslogtreecommitdiff
path: root/src/utils/translation/poparser.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-01 15:14:16 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-01 23:42:37 +0300
commitf9030497b6196ce2fadb6b6ada5d784be227d9a6 (patch)
treed11408b35d0860709d31e6520578cdd28391f151 /src/utils/translation/poparser.cpp
parentf52ca7838789a6910840597a929ecf6e0be9e1de (diff)
downloadplus-f9030497b6196ce2fadb6b6ada5d784be227d9a6.tar.gz
plus-f9030497b6196ce2fadb6b6ada5d784be227d9a6.tar.bz2
plus-f9030497b6196ce2fadb6b6ada5d784be227d9a6.tar.xz
plus-f9030497b6196ce2fadb6b6ada5d784be227d9a6.zip
Add missing const.
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 c105bf0da..bcb577f84 100644
--- a/src/utils/translation/poparser.cpp
+++ b/src/utils/translation/poparser.cpp
@@ -42,7 +42,7 @@ PoParser::PoParser() :
{
}
-void PoParser::openFile(std::string name)
+void PoParser::openFile(const std::string &name)
{
const ResourceManager *const resman = ResourceManager::getInstance();
if (!resman)
@@ -228,14 +228,14 @@ PoDict *PoParser::getEmptyDict()
return new PoDict("");
}
-bool PoParser::checkLang(std::string lang)
+bool PoParser::checkLang(const std::string &lang)
{
// check is po file exists
const ResourceManager *const resman = ResourceManager::getInstance();
return resman->exists(getFileName(lang));
}
-std::string PoParser::getFileName(std::string lang)
+std::string PoParser::getFileName(const std::string &lang)
{
// get po file name from lang name
// logger->log("getFileName: translations/%s.po", lang.c_str());