summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-07-11 00:12:43 +0300
committerAndrei Karas <akaras@inbox.ru>2015-07-11 00:12:43 +0300
commit368afa4bc05e5b66e521b6c881cd8e8f260cf5df (patch)
treeec9bd6a3c992c46550ad9aa396f10862257db68d /src/utils
parentee75580d40c5c444d184a6ecbeb99493ba42085a (diff)
downloadmanaplus-368afa4bc05e5b66e521b6c881cd8e8f260cf5df.tar.gz
manaplus-368afa4bc05e5b66e521b6c881cd8e8f260cf5df.tar.bz2
manaplus-368afa4bc05e5b66e521b6c881cd8e8f260cf5df.tar.xz
manaplus-368afa4bc05e5b66e521b6c881cd8e8f260cf5df.zip
Add missing checks into other files.
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/translation/poparser.cpp3
-rw-r--r--src/utils/translation/poparser.h2
2 files changed, 1 insertions, 4 deletions
diff --git a/src/utils/translation/poparser.cpp b/src/utils/translation/poparser.cpp
index 934035cc5..19f5443e9 100644
--- a/src/utils/translation/poparser.cpp
+++ b/src/utils/translation/poparser.cpp
@@ -45,9 +45,6 @@ PoParser::PoParser() :
void PoParser::openFile(const std::string &name)
{
- const ResourceManager *const resman = ResourceManager::getInstance();
- if (!resman)
- return;
int size;
char *buf = static_cast<char*>(PhysFs::loadFile(getFileName(name), size));
diff --git a/src/utils/translation/poparser.h b/src/utils/translation/poparser.h
index bb7816161..7dcde6fe9 100644
--- a/src/utils/translation/poparser.h
+++ b/src/utils/translation/poparser.h
@@ -58,7 +58,7 @@ class PoParser final
static std::string getFileName(const std::string &lang);
- PoDict *getDict() const;
+ PoDict *getDict() const RETURNS_NONNULL A_WARN_UNUSED;
static void convertStr(std::string &str);