diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-08-22 14:14:34 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-08-22 14:14:34 +0300 |
commit | da05d9dd98315378bdded216184294f376643191 (patch) | |
tree | ffc4b984c73c3bb68d26a1df6481634254075744 /src/actions | |
parent | ec856b2026c7ceecab5f74942bb36661d7c6ae67 (diff) | |
download | plus-da05d9dd98315378bdded216184294f376643191.tar.gz plus-da05d9dd98315378bdded216184294f376643191.tar.bz2 plus-da05d9dd98315378bdded216184294f376643191.tar.xz plus-da05d9dd98315378bdded216184294f376643191.zip |
Use resource manager as global variable.
Diffstat (limited to 'src/actions')
-rw-r--r-- | src/actions/actions.cpp | 12 |
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()), |