summaryrefslogtreecommitdiff
path: root/src/actions/actions.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-08-22 14:14:34 +0300
committerAndrei Karas <akaras@inbox.ru>2015-08-22 14:14:34 +0300
commitda05d9dd98315378bdded216184294f376643191 (patch)
treeffc4b984c73c3bb68d26a1df6481634254075744 /src/actions/actions.cpp
parentec856b2026c7ceecab5f74942bb36661d7c6ae67 (diff)
downloadmanaverse-da05d9dd98315378bdded216184294f376643191.tar.gz
manaverse-da05d9dd98315378bdded216184294f376643191.tar.bz2
manaverse-da05d9dd98315378bdded216184294f376643191.tar.xz
manaverse-da05d9dd98315378bdded216184294f376643191.zip
Use resource manager as global variable.
Diffstat (limited to 'src/actions/actions.cpp')
-rw-r--r--src/actions/actions.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/actions/actions.cpp b/src/actions/actions.cpp
index 329202612..5dd1cbb6c 100644
--- a/src/actions/actions.cpp
+++ b/src/actions/actions.cpp
@@ -1001,7 +1001,7 @@ impHandler0(who)
impHandler0(cleanGraphics)
{
- ResourceManager::getInstance()->clearCache();
+ resourceManager->clearCache();
if (debugChatTab)
{
@@ -1216,24 +1216,22 @@ impHandler(dump)
if (!debugChatTab)
return false;
- ResourceManager *const resman = ResourceManager::getInstance();
-
if (!event.args.empty())
{
- ResourceManager::Resources *res = resman->getResources();
+ ResourceManager::Resources *res = resourceManager->getResources();
// TRANSLATORS: dump command
showRes(_("Resource images:"), res);
- res = resman->getOrphanedResources();
+ res = resourceManager->getOrphanedResources();
// TRANSLATORS: dump command
showRes(_("Resource orphaned images:"), res);
}
else
{
- ResourceManager::Resources *res = resman->getResources();
+ ResourceManager::Resources *res = resourceManager->getResources();
// TRANSLATORS: dump command
debugChatTab->chatLog(_("Resource images:") + toString(res->size()),
ChatMsgType::BY_SERVER);
- res = resman->getOrphanedResources();
+ res = resourceManager->getOrphanedResources();
// TRANSLATORS: dump command
debugChatTab->chatLog(_("Resource orphaned images:")
+ toString(res->size()),