From 0b766851db032c7046ee0009e488fcc3a473ac4c Mon Sep 17 00:00:00 2001 From: Aokromes Date: Sun, 26 Nov 2017 23:57:09 +0100 Subject: [PATCH] Core/Skills: fixed a few warnings By Ovalord --- src/server/game/Loot/LootMgr.h | 2 +- src/server/game/Skills/Archaeology/SitePolygonGraph.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/server/game/Loot/LootMgr.h b/src/server/game/Loot/LootMgr.h index 43484d2601c..4cf2e58934e 100644 --- a/src/server/game/Loot/LootMgr.h +++ b/src/server/game/Loot/LootMgr.h @@ -345,7 +345,7 @@ struct TC_GAME_API Loot // Only set for inventory items that can be right-click looted uint32 containerID; - Loot(uint32 _gold = 0) : gold(_gold), unlootedCount(0), roundRobinPlayer(), unlootedCurrency(0), loot_type(LOOT_CORPSE), maxDuplicates(1), containerID(0) { } + Loot(uint32 _gold = 0) : gold(_gold), unlootedCount(0), unlootedCurrency(0), roundRobinPlayer(), loot_type(LOOT_CORPSE), maxDuplicates(1), containerID(0) { } ~Loot() { clear(); } // For deleting items at loot removal since there is no backward interface to the Item() diff --git a/src/server/game/Skills/Archaeology/SitePolygonGraph.h b/src/server/game/Skills/Archaeology/SitePolygonGraph.h index eea397d4f13..1195a5270aa 100644 --- a/src/server/game/Skills/Archaeology/SitePolygonGraph.h +++ b/src/server/game/Skills/Archaeology/SitePolygonGraph.h @@ -64,8 +64,8 @@ public: void setX(const float &x) { _pointX = x; _round_p(); } void setY(const float &y) { _pointY = y; _round_p(); } - const float getX() const { return _pointX; } - const float getY() const { return _pointY; } + float getX() const { return _pointX; } + float getY() const { return _pointY; } const SitePolygonGraphNode get() const { return (*this); } @@ -191,7 +191,7 @@ public: const SitePolygonGraphArch getBottom() const { return _archB; } const SitePolygonGraphArch getRight() const { return _archR; } const SitePolygonGraphArch getTop() const { return _archT; } - const bool isNull() const { return _isNull; } + bool isNull() const { return _isNull; } private: SitePolygonGraphArch _archL;