aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Chat/ChatLink.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/game/Chat/ChatLink.h')
-rw-r--r--src/server/game/Chat/ChatLink.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/server/game/Chat/ChatLink.h b/src/server/game/Chat/ChatLink.h
index 0d413ce49df..32ea4b73698 100644
--- a/src/server/game/Chat/ChatLink.h
+++ b/src/server/game/Chat/ChatLink.h
@@ -44,7 +44,7 @@ public:
void SetBounds(std::istringstream::pos_type startPos, std::istringstream::pos_type endPos) { _startPos = startPos; _endPos = endPos; }
virtual bool Initialize(std::istringstream& iss) = 0;
- virtual bool ValidateName(char* buffer, const char* context) = 0;
+ virtual bool ValidateName(char* buffer, char const* context) = 0;
protected:
uint32 _color;
@@ -57,12 +57,12 @@ protected:
class TC_GAME_API ItemChatLink : public ChatLink
{
public:
- ItemChatLink() : ChatLink(), _item(NULL), _suffix(NULL), _property(NULL)
+ ItemChatLink() : ChatLink(), _item(nullptr), _suffix(nullptr), _property(nullptr)
{
memset(_data, 0, sizeof(_data));
}
virtual bool Initialize(std::istringstream& iss) override;
- virtual bool ValidateName(char* buffer, const char* context) override;
+ virtual bool ValidateName(char* buffer, char const* context) override;
protected:
std::string FormatName(uint8 index, ItemLocale const* locale, char* const* suffixStrings) const;
@@ -79,7 +79,7 @@ class TC_GAME_API QuestChatLink : public ChatLink
public:
QuestChatLink() : ChatLink(), _quest(nullptr), _questLevel(0) { }
virtual bool Initialize(std::istringstream& iss) override;
- virtual bool ValidateName(char* buffer, const char* context) override;
+ virtual bool ValidateName(char* buffer, char const* context) override;
protected:
Quest const* _quest;
@@ -92,7 +92,7 @@ class TC_GAME_API SpellChatLink : public ChatLink
public:
SpellChatLink() : ChatLink(), _spell(nullptr) { }
virtual bool Initialize(std::istringstream& iss) override;
- virtual bool ValidateName(char* buffer, const char* context) override;
+ virtual bool ValidateName(char* buffer, char const* context) override;
protected:
SpellInfo const* _spell;
@@ -102,12 +102,12 @@ protected:
class TC_GAME_API AchievementChatLink : public ChatLink
{
public:
- AchievementChatLink() : ChatLink(), _guid(0), _achievement(NULL)
+ AchievementChatLink() : ChatLink(), _guid(0), _achievement(nullptr)
{
memset(_data, 0, sizeof(_data));
}
virtual bool Initialize(std::istringstream& iss) override;
- virtual bool ValidateName(char* buffer, const char* context) override;
+ virtual bool ValidateName(char* buffer, char const* context) override;
protected:
uint32 _guid;
@@ -152,7 +152,7 @@ public:
class TC_GAME_API GlyphChatLink : public SpellChatLink
{
public:
- GlyphChatLink() : SpellChatLink(), _slotId(0), _glyph(NULL) { }
+ GlyphChatLink() : SpellChatLink(), _slotId(0), _glyph(nullptr) { }
virtual bool Initialize(std::istringstream& iss) override;
private:
uint32 _slotId;
@@ -162,7 +162,7 @@ private:
class TC_GAME_API LinkExtractor
{
public:
- explicit LinkExtractor(const char* msg);
+ explicit LinkExtractor(char const* msg);
~LinkExtractor();
bool IsValidMessage();