From 9aae08f9e2f869b0f4bfa446404b01a8d3b2d60f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 20 May 2016 19:24:42 +0300 Subject: Fix code style. --- src/resources/db/moddb.h | 2 -- src/resources/memorymanager.cpp | 7 ++++--- src/resources/sprite/spritedef.cpp | 3 ++- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src/resources') diff --git a/src/resources/db/moddb.h b/src/resources/db/moddb.h index 66488c691..f87b7f254 100644 --- a/src/resources/db/moddb.h +++ b/src/resources/db/moddb.h @@ -29,8 +29,6 @@ #include "localconsts.h" -class ModInfo; - namespace ModDB { void load(); 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 diff --git a/src/resources/sprite/spritedef.cpp b/src/resources/sprite/spritedef.cpp index edeff4c4f..01651bd80 100644 --- a/src/resources/sprite/spritedef.cpp +++ b/src/resources/sprite/spritedef.cpp @@ -100,7 +100,8 @@ SpriteDef *SpriteDef::load(const std::string &animationFile, if (!rootNode || !xmlNameEqual(rootNode, "sprite")) { - reportAlways("Error, failed to parse sprite %s", animationFile.c_str()); + reportAlways("Error, failed to parse sprite %s", + animationFile.c_str()); const std::string errorFile = paths.getStringValue("sprites").append( paths.getStringValue("spriteErrorFile")); BLOCK_END("SpriteDef::load") -- cgit v1.2.3-70-g09d2