From dabd3fcef84f2e32c34c2d514bb8420628288bc8 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 26 Dec 2013 13:10:46 +0300 Subject: add restrict into charserverhandler. --- src/net/ea/charserverhandler.cpp | 13 +++++++------ src/net/ea/charserverhandler.h | 15 ++++++++------- 2 files changed, 15 insertions(+), 13 deletions(-) (limited to 'src/net') diff --git a/src/net/ea/charserverhandler.cpp b/src/net/ea/charserverhandler.cpp index b59c2b536..c7e1b226e 100644 --- a/src/net/ea/charserverhandler.cpp +++ b/src/net/ea/charserverhandler.cpp @@ -232,9 +232,9 @@ void CharServerHandler::clear() mCharacters.clear(); } -void CharServerHandler::processCharMapInfo(Net::MessageIn &msg, - Network *const network, - ServerInfo &server) +void CharServerHandler::processCharMapInfo(Net::MessageIn &restrict msg, + Network *restrict const network, + ServerInfo &restrict server) { BLOCK_START("CharServerHandler::processCharMapInfo") // msg.skip(4); // CharID, must be the same as player_node->charID @@ -267,9 +267,10 @@ void CharServerHandler::processCharMapInfo(Net::MessageIn &msg, BLOCK_END("CharServerHandler::processCharMapInfo") } -void CharServerHandler::processChangeMapServer(Net::MessageIn &msg, - Network *const network, - ServerInfo &server) const +void CharServerHandler::processChangeMapServer(Net::MessageIn &restrict msg, + Network *restrict const network, + ServerInfo &restrict server) + const { BLOCK_START("CharServerHandler::processChangeMapServer") GameHandler *const gh = static_cast(Net::getGameHandler()); diff --git a/src/net/ea/charserverhandler.h b/src/net/ea/charserverhandler.h index 004dde8c4..7c6d585bb 100644 --- a/src/net/ea/charserverhandler.h +++ b/src/net/ea/charserverhandler.h @@ -72,13 +72,14 @@ class CharServerHandler : public Net::CharServerHandler virtual void processCharDeleteFailed(Net::MessageIn &msg); - virtual void processCharMapInfo(Net::MessageIn &msg, - Network *const network, - ServerInfo &mapServer); - - virtual void processChangeMapServer(Net::MessageIn &msg, - Network *const network, - ServerInfo &mapServer) const; + virtual void processCharMapInfo(Net::MessageIn &restrict msg, + Network *restrict const network, + ServerInfo &restrict mapServer); + + virtual void processChangeMapServer(Net::MessageIn &restrict msg, + Network *restrict const network, + ServerInfo &restrict mapServer) + const; virtual void clear() override final; -- cgit v1.2.3-70-g09d2