From a4553936a39b21589a5af8c1bdda3d1d99a825ca Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 26 Dec 2013 13:29:46 +0300 Subject: add restrict into chathandler. --- src/net/ea/chathandler.cpp | 3 ++- src/net/ea/chathandler.h | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'src/net/ea') 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); -- cgit v1.2.3-70-g09d2