From d60eec2c2cd453ecbaee7883a272479792875465 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 26 Apr 2013 20:08:06 +0300 Subject: fix code style more. --- src/net/tmwa/playerhandler.cpp | 2 +- src/net/tmwa/playerhandler.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/net/tmwa') diff --git a/src/net/tmwa/playerhandler.cpp b/src/net/tmwa/playerhandler.cpp index 7ce018738..b63be0a6d 100644 --- a/src/net/tmwa/playerhandler.cpp +++ b/src/net/tmwa/playerhandler.cpp @@ -181,7 +181,7 @@ void PlayerHandler::setDestination(const int x, const int y, static_cast(direction)); } -void PlayerHandler::changeAction(const Being::Action action) const +void PlayerHandler::changeAction(const Being::Action &action) const { char type; switch (action) diff --git a/src/net/tmwa/playerhandler.h b/src/net/tmwa/playerhandler.h index 5e15f5a3a..ebfc66874 100644 --- a/src/net/tmwa/playerhandler.h +++ b/src/net/tmwa/playerhandler.h @@ -53,7 +53,7 @@ class PlayerHandler final : public MessageHandler, public Ea::PlayerHandler void setDirection(const unsigned char direction) const override; void setDestination(const int x, const int y, const int direction) const override; - void changeAction(const Being::Action action) const override; + void changeAction(const Being::Action &action) const override; void processOnlineList(Net::MessageIn &msg) const; void requestOnlineList() const override; void updateStatus(const uint8_t status) const override; -- cgit v1.2.3-70-g09d2