diff options
| author | Spp <none@none> | 2010-08-21 23:08:54 +0200 |
|---|---|---|
| committer | Spp <none@none> | 2010-08-21 23:08:54 +0200 |
| commit | 572f7bbd1dc67a6df6503ec4f828a64842d02cdc (patch) | |
| tree | 60cc6e5495dfa29d751059755bccf20aecc9ad44 /src/server/game/Chat | |
| parent | a136403deed39dc7d8523fc7117a070b238992f9 (diff) | |
Core: Remove "may be used uninitialized in this function", "unused parameter ‘xxx’" and "'xxx' defined but not used" warnings
--HG--
branch : trunk
Diffstat (limited to 'src/server/game/Chat')
| -rw-r--r-- | src/server/game/Chat/Chat.cpp | 16 | ||||
| -rw-r--r-- | src/server/game/Chat/Commands/Level3.cpp | 6 |
2 files changed, 11 insertions, 11 deletions
diff --git a/src/server/game/Chat/Chat.cpp b/src/server/game/Chat/Chat.cpp index 9ee79281e5a..0fa2c91befb 100644 --- a/src/server/game/Chat/Chat.cpp +++ b/src/server/game/Chat/Chat.cpp @@ -1200,14 +1200,14 @@ valid examples: std::istringstream reader(message); char buffer[256]; - uint32 color; - - ItemPrototype const* linkedItem; - Quest const* linkedQuest; - SpellEntry const *linkedSpell; - AchievementEntry const* linkedAchievement; - ItemRandomPropertiesEntry const* itemProperty; - ItemRandomSuffixEntry const* itemSuffix; + uint32 color = 0; + + ItemPrototype const* linkedItem = NULL; + Quest const* linkedQuest = NULL; + SpellEntry const *linkedSpell = NULL; + AchievementEntry const* linkedAchievement = NULL; + ItemRandomPropertiesEntry const* itemProperty = NULL; + ItemRandomSuffixEntry const* itemSuffix = NULL; while (!reader.eof()) { diff --git a/src/server/game/Chat/Commands/Level3.cpp b/src/server/game/Chat/Commands/Level3.cpp index d712dcdac91..ae09f424c40 100644 --- a/src/server/game/Chat/Commands/Level3.cpp +++ b/src/server/game/Chat/Commands/Level3.cpp @@ -1114,7 +1114,7 @@ bool ChatHandler::HandleReloadAuctionsCommand(const char * /*args*/) return true; } -bool ChatHandler::HandleReloadConditions(const char* args) +bool ChatHandler::HandleReloadConditions(const char* /*args*/) { sLog.outString("Re-Loading Conditions..."); sConditionMgr.LoadConditions(true); @@ -3536,8 +3536,8 @@ bool ChatHandler::HandleLookupFactionCommand(const char *args) if (repState) // and then target != NULL also { - ReputationRank rank = target->GetReputationMgr().GetRank(factionEntry); - std::string rankName = GetTrinityString(ReputationRankStrIndex[rank]); + uint32 index = target->GetReputationMgr().GetReputationRankStrIndex(factionEntry); + std::string rankName = GetTrinityString(index); ss << " " << rankName << "|h|r (" << target->GetReputationMgr().GetReputation(factionEntry) << ")"; |
