Core: Fix more warnings
--HG-- branch : trunk
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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; }
|
||||
|
||||
@@ -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 ||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user