Small optimization for message processing
Avoid creating the map for every message
This commit is contained in:
1 parent
9dcd44a15f
commit
b536d0f3c3
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -276,7 +276,7 @@ void CMessage::InitType() {
|
||||
m_eType = Type::Notice;
|
||||
}
|
||||
} else {
|
||||
std::map<CString, Type> mTypes = {
|
||||
static std::map<CString, Type> mTypes = {
|
||||
{"ACCOUNT", Type::Account},
|
||||
{"AWAY", Type::Away},
|
||||
{"CAP", Type::Capability},
|
||||
|
||||
Reference in new issue
Block a user