diff options
| author | QAston <qaston@gmail.com> | 2011-08-31 11:33:26 -0700 |
|---|---|---|
| committer | QAston <qaston@gmail.com> | 2011-08-31 11:33:26 -0700 |
| commit | 534ca8e23f425192a770d76866b911bc8c3cf983 (patch) | |
| tree | c5a218a8f8cb591d0b8b5c1ecb37918acb2eb086 /src/server/game | |
| parent | 048ae9cfab780dc260759eb002dd3b5936a8a268 (diff) | |
| parent | f5a668ae8d55657490ed8b06b76f091bcb4f6e40 (diff) | |
Merge pull request #2821 from Chaplain/cleanup2
Core/Misc: Cleanup
Diffstat (limited to 'src/server/game')
| -rwxr-xr-x | src/server/game/Battlegrounds/BattlegroundMgr.cpp | 2 | ||||
| -rwxr-xr-x | src/server/game/Battlegrounds/BattlegroundMgr.h | 2 | ||||
| -rwxr-xr-x | src/server/game/Chat/Channels/Channel.cpp | 1 | ||||
| -rwxr-xr-x | src/server/game/DungeonFinding/LFGMgr.cpp | 2 |
4 files changed, 3 insertions, 4 deletions
diff --git a/src/server/game/Battlegrounds/BattlegroundMgr.cpp b/src/server/game/Battlegrounds/BattlegroundMgr.cpp index b9a92f0cb44..ce7fa8d81a4 100755 --- a/src/server/game/Battlegrounds/BattlegroundMgr.cpp +++ b/src/server/game/Battlegrounds/BattlegroundMgr.cpp @@ -520,7 +520,7 @@ Battleground* BattlegroundMgr::CreateNewBattleground(BattlegroundTypeId bgTypeId if (selectionWeights) { - if (!selectionWeights->size()) + if (selectionWeights->empty()) return NULL; uint32 Weight = 0; uint32 selectedWeight = 0; diff --git a/src/server/game/Battlegrounds/BattlegroundMgr.h b/src/server/game/Battlegrounds/BattlegroundMgr.h index 0b0c0ceb2a6..b453ba59170 100755 --- a/src/server/game/Battlegrounds/BattlegroundMgr.h +++ b/src/server/game/Battlegrounds/BattlegroundMgr.h @@ -122,7 +122,7 @@ class BattlegroundMgr bool isTesting() const { return m_Testing; } static bool IsArenaType(BattlegroundTypeId bgTypeId); - static bool IsBattlegroundType(BattlegroundTypeId bgTypeId) { return !BattlegroundMgr::IsArenaType(bgTypeId); } + static bool IsBattlegroundType(BattlegroundTypeId bgTypeId) { return !IsArenaType(bgTypeId); } static BattlegroundQueueTypeId BGQueueTypeId(BattlegroundTypeId bgTypeId, uint8 arenaType); static BattlegroundTypeId BGTemplateId(BattlegroundQueueTypeId bgQueueTypeId); static uint8 BGArenaType(BattlegroundQueueTypeId bgQueueTypeId); diff --git a/src/server/game/Chat/Channels/Channel.cpp b/src/server/game/Chat/Channels/Channel.cpp index c56b975acb9..d39018e69a4 100755 --- a/src/server/game/Chat/Channels/Channel.cpp +++ b/src/server/game/Chat/Channels/Channel.cpp @@ -377,7 +377,6 @@ void Channel::UnBan(uint64 good, const char *badname) void Channel::Password(uint64 p, const char *pass) { - std::string plName; uint32 sec = 0; Player *plr = ObjectAccessor::FindPlayer(p); if (plr) diff --git a/src/server/game/DungeonFinding/LFGMgr.cpp b/src/server/game/DungeonFinding/LFGMgr.cpp index 4154b297d9e..c9752c6377b 100755 --- a/src/server/game/DungeonFinding/LFGMgr.cpp +++ b/src/server/game/DungeonFinding/LFGMgr.cpp @@ -743,7 +743,7 @@ LfgProposal* LFGMgr::FindNewGroups(LfgGuidList& check, LfgGuidList& all) return NULL; // Try to match with queued groups - while (!pProposal && all.size() > 0) + while (!pProposal && !all.empty()) { check.push_back(all.front()); all.pop_front(); |
