From f24ddad3fa0f843eb29a281426151cf1a5f31f4b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 4 Sep 2012 23:47:11 +0300 Subject: add const to more classes, fix other small style issues. --- src/client.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/client.cpp') diff --git a/src/client.cpp b/src/client.cpp index 468f06f10..43d5650bb 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -399,7 +399,7 @@ void Client::gameInit() SMALL_VERSION).c_str(), nullptr); } - ResourceManager *const resman = ResourceManager::getInstance(); + const ResourceManager *const resman = ResourceManager::getInstance(); if (!resman->setWriteDir(mLocalDataDir)) { @@ -1200,7 +1200,7 @@ int Client::gameExec() { logger->log1("State: LOAD DATA"); - ResourceManager *const resman + const ResourceManager *const resman = ResourceManager::getInstance(); // If another data path has been set, @@ -1889,7 +1889,7 @@ void Client::initUpdatesDir() replaceAll(mUpdatesDir, ":", "_"); #endif - ResourceManager *const resman = ResourceManager::getInstance(); + const ResourceManager *const resman = ResourceManager::getInstance(); // Verify that the updates directory exists. Create if necessary. if (!resman->isDirectory("/" + mUpdatesDir)) -- cgit v1.2.3-60-g2f50