Core: Fix more warnings

--HG--
branch : trunk
This commit is contained in:
Spp
2010-08-24 14:44:56 +02:00
parent c728681422
commit 9e4357c9ad
29 changed files with 181 additions and 126 deletions
+1 -1
View File
@@ -125,7 +125,7 @@ class Object
public:
virtual ~Object ();
const bool IsInWorld() const { return m_inWorld; }
const bool& IsInWorld() const { return m_inWorld; }
virtual void AddToWorld()
{
if (m_inWorld)
+1 -1
View File
@@ -237,7 +237,7 @@ class Group
bool IsCreated() const { return GetMembersCount() > 0; }
const uint64& GetLeaderGUID() const { return m_leaderGuid; }
const uint64& GetGUID() const { return m_guid; }
const uint32 GetLowGUID() const { return GUID_LOPART(m_guid); }
uint32 GetLowGUID() const { return GUID_LOPART(m_guid); }
const char * GetLeaderName() const { return m_leaderName.c_str(); }
LootMethod GetLootMethod() const { return m_lootMethod; }
const uint64& GetLooterGuid() const { return m_looterGuid; }
+1 -1
View File
@@ -220,7 +220,7 @@ struct GuildBankEventLogEntry
uint8 DestTabId;
uint64 TimeStamp;
const bool isMoneyEvent()
bool isMoneyEvent()
{
return EventType == GUILD_BANK_LOG_DEPOSIT_MONEY ||
EventType == GUILD_BANK_LOG_WITHDRAW_MONEY ||
+2 -2
View File
@@ -281,8 +281,8 @@ class AuraScript : public _SpellScript
bool _Validate(SpellEntry const * entry, const char * scriptname);
bool _Load(Aura * aura);
void _ResetDefault() { m_default = true; }
bool _IsDefaultActionPrevented(SpellEffIndex effIndex) {return !m_default;};
bool PreventDefaultAction() { m_default = false; };
bool _IsDefaultActionPrevented(SpellEffIndex /*effIndex*/) {return !m_default;};
void PreventDefaultAction() { m_default = false; };
private:
Aura * m_aura;
bool m_default;