summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/files_unittest.cc5
-rw-r--r--src/utils/xmlutils_unittest.cc5
2 files changed, 4 insertions, 6 deletions
diff --git a/src/utils/files_unittest.cc b/src/utils/files_unittest.cc
index 5d227834e..b10c5acda 100644
--- a/src/utils/files_unittest.cc
+++ b/src/utils/files_unittest.cc
@@ -34,9 +34,8 @@ TEST_CASE("Files renameFile", "files")
PHYSFS_init("manaplus");
dirSeparator = "/";
logger = new Logger();
- const ResourceManager *const resman = ResourceManager::getInstance();
- resman->addToSearchPath("data", false);
- resman->addToSearchPath("../data", false);
+ resourceManager->addToSearchPath("data", false);
+ resourceManager->addToSearchPath("../data", false);
const int sz = 1234567;
char *buf = new char[sz];
diff --git a/src/utils/xmlutils_unittest.cc b/src/utils/xmlutils_unittest.cc
index 5cf2fad96..1fc6e44bc 100644
--- a/src/utils/xmlutils_unittest.cc
+++ b/src/utils/xmlutils_unittest.cc
@@ -38,9 +38,8 @@ TEST_CASE("xmlutils readXmlIntVector 1")
dirSeparator = "/";
XML::initXML();
logger = new Logger();
- ResourceManager *resman = ResourceManager::getInstance();
- resman->addToSearchPath("data", false);
- resman->addToSearchPath("../data", false);
+ resourceManager->addToSearchPath("data", false);
+ resourceManager->addToSearchPath("../data", false);
std::vector<int> arr;