diff options
author | Oleg Morozenkov <omorozenkov@gmail.com> | 2018-05-26 16:16:13 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-26 16:16:13 +0300 |
commit | b538f1fb43c790c9043630e6bfad42f037dbe03a (patch) | |
tree | e932ad8f364ddfa108e633a3624371a569936fdb /src/EventHandler.cpp | |
parent | 987adf188619011acff2052301245e4df22a38d2 (diff) | |
parent | ad40032ec5608af2fd94b28cbfe498a7313c3af0 (diff) |
Merge pull request #60 from JellyBrick/master
Improve performance
Diffstat (limited to 'src/EventHandler.cpp')
-rw-r--r-- | src/EventHandler.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/EventHandler.cpp b/src/EventHandler.cpp index d679683..32efe3e 100644 --- a/src/EventHandler.cpp +++ b/src/EventHandler.cpp @@ -26,9 +26,9 @@ void EventHandler::handleMessage(const Message::Ptr message) const { _broadcaster->broadcastAnyMessage(message); if (StringTools::startsWith(message->text, "/")) { - unsigned long splitPosition; - unsigned long spacePosition = message->text.find(' '); - unsigned long atSymbolPosition = message->text.find('@'); + uint32_t splitPosition; + uint32_t spacePosition = message->text.find(' '); + uint32_t atSymbolPosition = message->text.find('@'); if (spacePosition == message->text.npos) { if (atSymbolPosition == message->text.npos) { splitPosition = message->text.size(); |