summaryrefslogtreecommitdiff
path: root/src/resources/memorymanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-05-20 19:24:42 +0300
committerAndrei Karas <akaras@inbox.ru>2016-05-20 19:24:42 +0300
commit9aae08f9e2f869b0f4bfa446404b01a8d3b2d60f (patch)
treec39820893e0acfb87c9442bbc1e371839518b02a /src/resources/memorymanager.cpp
parent2cf3c1e9938d64fe7b2cf1cffca0ec8b12970e80 (diff)
downloadmanaplus-9aae08f9e2f869b0f4bfa446404b01a8d3b2d60f.tar.gz
manaplus-9aae08f9e2f869b0f4bfa446404b01a8d3b2d60f.tar.bz2
manaplus-9aae08f9e2f869b0f4bfa446404b01a8d3b2d60f.tar.xz
manaplus-9aae08f9e2f869b0f4bfa446404b01a8d3b2d60f.zip
Fix code style.
Diffstat (limited to 'src/resources/memorymanager.cpp')
-rw-r--r--src/resources/memorymanager.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/resources/memorymanager.cpp b/src/resources/memorymanager.cpp
index e20faf3db..11fd40f4e 100644
--- a/src/resources/memorymanager.cpp
+++ b/src/resources/memorymanager.cpp
@@ -20,8 +20,6 @@
#include "resources/memorymanager.h"
-#include "logger.h"
-
#include "gui/widgets/tabs/chat/chattab.h"
#include "resources/resourcemanager.h"
@@ -82,10 +80,13 @@ void MemoryManager::printAllMemory(ChatTab *const tab A_DYECMD_UNUSED)
{
if (!logger)
return;
+#ifdef DYECMD
+ if (resourceManager)
+ resourceManager->calcMemory(0);
+#else
int sz = 0;
if (resourceManager)
sz += resourceManager->calcMemory(0);
-#ifndef DYECMD
if (tab)
{
// TRANSLATORS: memory usage chat message