From ff3f52136772eccf65cd031f7777e2b352946d5d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 18 Dec 2013 12:05:58 +0300 Subject: add restrict into poparser. --- src/utils/translation/poparser.cpp | 5 +++-- src/utils/translation/poparser.h | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/utils/translation/poparser.cpp b/src/utils/translation/poparser.cpp index 6405e5f85..e624c85aa 100644 --- a/src/utils/translation/poparser.cpp +++ b/src/utils/translation/poparser.cpp @@ -59,8 +59,9 @@ void PoParser::openFile(std::string name) } } -PoDict *PoParser::load(const std::string &lang, const std::string &fileName, - PoDict *const dict) +PoDict *PoParser::load(const std::string &restrict lang, + const std::string &restrict fileName, + PoDict *restrict const dict) { logger->log("loading lang: %s, file: %s", lang.c_str(), fileName.c_str()); diff --git a/src/utils/translation/poparser.h b/src/utils/translation/poparser.h index 1d13fa694..15aef53e3 100644 --- a/src/utils/translation/poparser.h +++ b/src/utils/translation/poparser.h @@ -35,9 +35,9 @@ class PoParser final A_DELETE_COPY(PoParser) - PoDict *load(const std::string &lang, - const std::string &fileName = "", - PoDict *const dict = nullptr); + PoDict *load(const std::string &restrict lang, + const std::string &restrict fileName = "", + PoDict *restrict const dict = nullptr); bool checkLang(std::string lang) const; -- cgit v1.2.3-60-g2f50