From dd6a687d007b08d1d8c2e2b38b60606ae956fa29 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 18 May 2019 01:28:06 +0300 Subject: Fix code style --- src/net/eathena/inventoryrecv.cpp | 3 ++- src/net/eathena/maphandler.cpp | 8 ++++---- src/net/eathena/maphandler.h | 8 ++++---- src/net/eathena/refinehandler.cpp | 2 +- src/net/eathena/refinehandler.h | 2 +- 5 files changed, 12 insertions(+), 11 deletions(-) (limited to 'src/net/eathena') diff --git a/src/net/eathena/inventoryrecv.cpp b/src/net/eathena/inventoryrecv.cpp index 636a289b4..7131ddb19 100644 --- a/src/net/eathena/inventoryrecv.cpp +++ b/src/net/eathena/inventoryrecv.cpp @@ -1602,7 +1602,8 @@ void InventoryRecv::processInventoryEnd2(Net::MessageIn &msg) processInventoryEndContinue(invType); } -void InventoryRecv::processInventoryEndContinue(const NetInventoryTypeT invType) +void InventoryRecv::processInventoryEndContinue(const NetInventoryTypeT + invType) { switch (invType) { diff --git a/src/net/eathena/maphandler.cpp b/src/net/eathena/maphandler.cpp index 075a94a38..d7c6a8629 100644 --- a/src/net/eathena/maphandler.cpp +++ b/src/net/eathena/maphandler.cpp @@ -52,10 +52,10 @@ void MapHandler::destroyInstance() const outMsg.writeInt32(3, "command"); } -void MapHandler::camera(int action, - float range, - float rotation, - float latitude) const +void MapHandler::camera(const int action, + const float range, + const float rotation, + const float latitude) const { if (packetVersion < 20160525) return; diff --git a/src/net/eathena/maphandler.h b/src/net/eathena/maphandler.h index 2895087e4..668e06df5 100644 --- a/src/net/eathena/maphandler.h +++ b/src/net/eathena/maphandler.h @@ -39,10 +39,10 @@ class MapHandler final : public Net::MapHandler void destroyInstance() const override final; - void camera(int action, - float range, - float rotation, - float latitude) const override final; + void camera(const int action, + const float range, + const float rotation, + const float latitude) const override final; void clientVersion(const int version) const override final; }; diff --git a/src/net/eathena/refinehandler.cpp b/src/net/eathena/refinehandler.cpp index 35f441600..b5f5aacf1 100644 --- a/src/net/eathena/refinehandler.cpp +++ b/src/net/eathena/refinehandler.cpp @@ -52,7 +52,7 @@ void RefineHandler::addItem(const Item *const item) const void RefineHandler::refineItem(const Item *const item1, const Item *const item2, - int blessing) const + const int blessing) const { if (item1 == nullptr || item2 == nullptr) diff --git a/src/net/eathena/refinehandler.h b/src/net/eathena/refinehandler.h index 1f163f7e1..fb47dfa8e 100644 --- a/src/net/eathena/refinehandler.h +++ b/src/net/eathena/refinehandler.h @@ -38,7 +38,7 @@ class RefineHandler final : public Net::RefineHandler void refineItem(const Item *const item1, const Item *const item2, - int blessing) const override final; + const int blessing) const override final; void close() const override final; }; -- cgit v1.2.3-60-g2f50