From 973606a6dbd201050b7d4cd0a6a782ff742056f6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 29 Aug 2015 16:56:45 +0300 Subject: Fix code style. --- src/resources/db/colordb.cpp | 5 ++++- src/resources/iteminfo.h | 6 ++++-- src/resources/resourcemanager.h | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) (limited to 'src/resources') diff --git a/src/resources/db/colordb.cpp b/src/resources/db/colordb.cpp index 62f7beef6..8913dab9f 100644 --- a/src/resources/db/colordb.cpp +++ b/src/resources/db/colordb.cpp @@ -99,7 +99,10 @@ void ColorDB::loadHair(const std::string &fileName, node, "id", 0), ItemColor); if (colors.find(id) != colors.end()) - logger->log("ColorDB: Redefinition of dye ID %d", toInt(id, int)); + { + logger->log("ColorDB: Redefinition of dye ID %d", + toInt(id, int)); + } colors[id] = ItemColorData(id, XML::langProperty(node, "name", ""), XML::getProperty(node, "value", "#FFFFFF")); diff --git a/src/resources/iteminfo.h b/src/resources/iteminfo.h index c022b650a..063d82958 100644 --- a/src/resources/iteminfo.h +++ b/src/resources/iteminfo.h @@ -284,8 +284,10 @@ class ItemInfo final { return mColorsList ? static_cast(mColorsList->size()) : 0; } int getIconColorsSize() const - { return mIconColorsList ? static_cast(mIconColorsList->size()) - : 0; } + { + return mIconColorsList ? static_cast(mIconColorsList->size()) + : 0; + } std::string getColorName(const ItemColor idx) const; std::string getColor(const ItemColor idx) const; diff --git a/src/resources/resourcemanager.h b/src/resources/resourcemanager.h index 6557afecf..c7c2cffe1 100644 --- a/src/resources/resourcemanager.h +++ b/src/resources/resourcemanager.h @@ -249,7 +249,7 @@ class ResourceManager final void clearCache(); - void static init(); + static void init(); private: /** -- cgit v1.2.3-70-g09d2