From 368afa4bc05e5b66e521b6c881cd8e8f260cf5df Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 11 Jul 2015 00:12:43 +0300 Subject: Add missing checks into other files. --- src/utils/translation/poparser.cpp | 3 --- src/utils/translation/poparser.h | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) (limited to 'src/utils') 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(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); -- cgit v1.2.3-70-g09d2