summaryrefslogtreecommitdiff
path: root/src/utils/translation/poparser.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/translation/poparser.h')
-rw-r--r--src/utils/translation/poparser.h8
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;