From 7d9843c380cf00f38ad0c5bc75fd387e50ee11da Mon Sep 17 00:00:00 2001 From: DDuarte Date: Wed, 22 Jul 2015 23:24:56 +0100 Subject: Core/Misc: Add a few consts to methods --- src/server/game/Support/SupportMgr.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/server/game/Support') diff --git a/src/server/game/Support/SupportMgr.h b/src/server/game/Support/SupportMgr.h index fd251f50110..405e1372fb3 100644 --- a/src/server/game/Support/SupportMgr.h +++ b/src/server/game/Support/SupportMgr.h @@ -77,7 +77,7 @@ public: return name; } - std::string const& GetComment() { return _comment; } + std::string const& GetComment() const { return _comment; } virtual void SetAssignedTo(ObjectGuid guid, bool /*isAdmin*/ = false) { _assignedTo = guid; } virtual void SetUnassigned() { _assignedTo.Clear(); } @@ -225,11 +225,11 @@ public: void Initialize(); - bool GetSupportSystemStatus() { return _supportSystemStatus; } - bool GetTicketSystemStatus() { return _supportSystemStatus && _ticketSystemStatus; } - bool GetBugSystemStatus() { return _supportSystemStatus && _bugSystemStatus; } - bool GetComplaintSystemStatus() { return _supportSystemStatus && _complaintSystemStatus; } - bool GetSuggestionSystemStatus() { return _supportSystemStatus && _suggestionSystemStatus; } + bool GetSupportSystemStatus() const { return _supportSystemStatus; } + bool GetTicketSystemStatus() const { return _supportSystemStatus && _ticketSystemStatus; } + bool GetBugSystemStatus() const { return _supportSystemStatus && _bugSystemStatus; } + bool GetComplaintSystemStatus() const { return _supportSystemStatus && _complaintSystemStatus; } + bool GetSuggestionSystemStatus() const { return _supportSystemStatus && _suggestionSystemStatus; } uint64 GetLastChange() const { return _lastChange; } template uint32 GetOpenTicketCount() const; -- cgit v1.2.3