From b42cc5c01d3bdd274d9b9e90aad574d865c4e67a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 30 May 2015 01:11:50 +0300 Subject: Convert ChatMsgType enum into strong typed enum. --- src/enums/gui/chatmsgtype.h | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'src/enums') diff --git a/src/enums/gui/chatmsgtype.h b/src/enums/gui/chatmsgtype.h index baacb57fd..947a83ff9 100644 --- a/src/enums/gui/chatmsgtype.h +++ b/src/enums/gui/chatmsgtype.h @@ -23,20 +23,20 @@ #ifndef ENUMS_GUI_CHATMSGTYPE_H #define ENUMS_GUI_CHATMSGTYPE_H -namespace ChatMsgType +#include "enums/simpletypes/enumdefines.h" + +enumStart(ChatMsgType) { - enum Type - { - BY_GM = 0, - BY_PLAYER, - BY_OTHER, - BY_SERVER, - BY_CHANNEL, - ACT_WHISPER, // getting whispered at - ACT_IS, // equivalent to "/me" on IRC - BY_LOGGER, - BY_UNKNOWN = -1 - }; -} // namespace ChatMsgType + BY_GM = 0, + BY_PLAYER, + BY_OTHER, + BY_SERVER, + BY_CHANNEL, + ACT_WHISPER, // getting whispered at + ACT_IS, // equivalent to "/me" on IRC + BY_LOGGER, + BY_UNKNOWN = -1 +} +enumEnd(ChatMsgType); #endif // ENUMS_GUI_CHATMSGTYPE_H -- cgit v1.2.3-60-g2f50