Skip to content

Commit

Permalink
[c12987] Fix a few more static code analysis warnings
Browse files Browse the repository at this point in the history
(based on commit [12794] - 9acdf91)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
  • Loading branch information
DomGries authored and xfurry committed Nov 23, 2014
1 parent 9e6701c commit 8f0065a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/game/CalendarHandler.cpp
Expand Up @@ -854,7 +854,7 @@ void CalendarMgr::SendCalendarEvent(Player* player, CalendarEvent const* event,
if (!player || !event)
return;

std::string timeStr = TimeToTimestampStr(event->EventTime);
//std::string timeStr = TimeToTimestampStr(event->EventTime);
DEBUG_FILTER_LOG(LOG_FILTER_CALENDAR, "SendCalendarEvent> sendType[%u], CreatorGuid[%s], EventId["UI64FMTD"], Type[%u], Flags[%u], Title[%s]",
sendType, event->CreatorGuid.GetString().c_str(), event->EventId, uint32(event->Type), event->Flags, event->Title.c_str());

Expand Down
2 changes: 1 addition & 1 deletion src/game/SpellMgr.cpp
Expand Up @@ -1396,7 +1396,7 @@ struct DoSpellProcEvent
++count;
}

bool HasEntry(uint32 spellId) { return spe_map.count(spellId) > 0; }
bool HasEntry(uint32 spellId) { return spe_map.find(spellId) != spe_map.end(); }
bool SetStateToEntry(uint32 spellId) { return (state = spe_map.find(spellId)) != spe_map.end(); }
SpellProcEventMap& spe_map;
SpellProcEventMap::const_iterator state;
Expand Down
3 changes: 1 addition & 2 deletions src/game/World.cpp
Expand Up @@ -146,8 +146,7 @@ World::~World()
VMAP::VMapFactory::clear();
MMAP::MMapFactory::clear();

if (m_configForceLoadMapIds)
delete m_configForceLoadMapIds;
delete m_configForceLoadMapIds;

// TODO free addSessQueue
}
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "12986"
#define REVISION_NR "12987"
#endif // __REVISION_NR_H__

0 comments on commit 8f0065a

Please sign in to comment.