Core: Cleanup.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user