diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-12-26 13:29:46 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-12-26 13:29:46 +0300 |
commit | a4553936a39b21589a5af8c1bdda3d1d99a825ca (patch) | |
tree | 650ef6a43cc3398ca2ce1a2fa7fa91f48b40be1f /src/net | |
parent | dabd3fcef84f2e32c34c2d514bb8420628288bc8 (diff) | |
download | plus-a4553936a39b21589a5af8c1bdda3d1d99a825ca.tar.gz plus-a4553936a39b21589a5af8c1bdda3d1d99a825ca.tar.bz2 plus-a4553936a39b21589a5af8c1bdda3d1d99a825ca.tar.xz plus-a4553936a39b21589a5af8c1bdda3d1d99a825ca.zip |
add restrict into chathandler.
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/chathandler.h | 6 | ||||
-rw-r--r-- | src/net/ea/chathandler.cpp | 3 | ||||
-rw-r--r-- | src/net/ea/chathandler.h | 4 |
3 files changed, 8 insertions, 5 deletions
diff --git a/src/net/chathandler.h b/src/net/chathandler.h index e91be671c..f5cf03f9f 100644 --- a/src/net/chathandler.h +++ b/src/net/chathandler.h @@ -26,6 +26,8 @@ #include <iosfwd> #include <string> +#include "localconsts.h" + namespace Net { class ChatHandler @@ -39,8 +41,8 @@ class ChatHandler virtual void talkRaw(const std::string &text) const = 0; - virtual void me(const std::string &text, - const std::string &channel) const = 0; + virtual void me(const std::string &restrict text, + const std::string &restrict channel) const = 0; virtual void privateMessage(const std::string &recipient, const std::string &text) = 0; diff --git a/src/net/ea/chathandler.cpp b/src/net/ea/chathandler.cpp index 267d1102d..698a03ef4 100644 --- a/src/net/ea/chathandler.cpp +++ b/src/net/ea/chathandler.cpp @@ -62,7 +62,8 @@ void ChatHandler::clear() mSkipping = true; } -void ChatHandler::me(const std::string &text, const std::string &channel) const +void ChatHandler::me(const std::string &restrict text, + const std::string &restrict channel) const { // here need string duplication std::string action = strprintf("*%s*", text.c_str()); diff --git a/src/net/ea/chathandler.h b/src/net/ea/chathandler.h index ead5dac98..cba709577 100644 --- a/src/net/ea/chathandler.h +++ b/src/net/ea/chathandler.h @@ -38,8 +38,8 @@ class ChatHandler : public Net::ChatHandler A_DELETE_COPY(ChatHandler) - void me(const std::string &text, - const std::string &channel) const override final; + void me(const std::string &restrict text, + const std::string &restrict channel) const override final; virtual void processWhisperResponse(Net::MessageIn &msg); |