summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2019-05-18 01:28:06 +0300
committerAndrei Karas <akaras@inbox.ru>2019-05-18 01:28:06 +0300
commitdd6a687d007b08d1d8c2e2b38b60606ae956fa29 (patch)
treefd25213b60fe76fcce47fef92b14255f31738967
parentfe68ce75a36b7f9de389d996763b9c70f5f2c32b (diff)
downloadplus-dd6a687d007b08d1d8c2e2b38b60606ae956fa29.tar.gz
plus-dd6a687d007b08d1d8c2e2b38b60606ae956fa29.tar.bz2
plus-dd6a687d007b08d1d8c2e2b38b60606ae956fa29.tar.xz
plus-dd6a687d007b08d1d8c2e2b38b60606ae956fa29.zip
Fix code style
-rw-r--r--src/net/eathena/inventoryrecv.cpp3
-rw-r--r--src/net/eathena/maphandler.cpp8
-rw-r--r--src/net/eathena/maphandler.h8
-rw-r--r--src/net/eathena/refinehandler.cpp2
-rw-r--r--src/net/eathena/refinehandler.h2
-rw-r--r--src/net/maphandler.h8
-rw-r--r--src/net/refinehandler.h2
-rw-r--r--src/net/tmwa/maphandler.cpp8
-rw-r--r--src/net/tmwa/maphandler.h8
-rw-r--r--src/net/tmwa/refinehandler.cpp2
-rw-r--r--src/net/tmwa/refinehandler.h2
11 files changed, 27 insertions, 26 deletions
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;
};
diff --git a/src/net/maphandler.h b/src/net/maphandler.h
index 75a22382d..40079c320 100644
--- a/src/net/maphandler.h
+++ b/src/net/maphandler.h
@@ -41,10 +41,10 @@ class MapHandler notfinal
virtual void destroyInstance() const = 0;
- virtual void camera(int action,
- float range,
- float rotation,
- float latitude) const = 0;
+ virtual void camera(const int action,
+ const float range,
+ const float rotation,
+ const float latitude) const = 0;
virtual void clientVersion(const int version) const = 0;
};
diff --git a/src/net/refinehandler.h b/src/net/refinehandler.h
index 5a67e47fc..e73692291 100644
--- a/src/net/refinehandler.h
+++ b/src/net/refinehandler.h
@@ -43,7 +43,7 @@ class RefineHandler notfinal
virtual void refineItem(const Item *const item1,
const Item *const item2,
- int blessing) const = 0;
+ const int blessing) const = 0;
virtual void close() const = 0;
};
diff --git a/src/net/tmwa/maphandler.cpp b/src/net/tmwa/maphandler.cpp
index 56e716583..c935490a6 100644
--- a/src/net/tmwa/maphandler.cpp
+++ b/src/net/tmwa/maphandler.cpp
@@ -44,10 +44,10 @@ void MapHandler::destroyInstance() const
{
}
-void MapHandler::camera(int action A_UNUSED,
- float range A_UNUSED,
- float rotation A_UNUSED,
- float latitude A_UNUSED) const
+void MapHandler::camera(const int action A_UNUSED,
+ const float range A_UNUSED,
+ const float rotation A_UNUSED,
+ const float latitude A_UNUSED) const
{
}
diff --git a/src/net/tmwa/maphandler.h b/src/net/tmwa/maphandler.h
index b1661e5b4..5aa037a8f 100644
--- a/src/net/tmwa/maphandler.h
+++ b/src/net/tmwa/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/tmwa/refinehandler.cpp b/src/net/tmwa/refinehandler.cpp
index b4842ce86..0585cd3b8 100644
--- a/src/net/tmwa/refinehandler.cpp
+++ b/src/net/tmwa/refinehandler.cpp
@@ -42,7 +42,7 @@ void RefineHandler::addItem(const Item *const item A_UNUSED) const
void RefineHandler::refineItem(const Item *const item1 A_UNUSED,
const Item *const item2 A_UNUSED,
- int blessing A_UNUSED) const
+ const int blessing A_UNUSED) const
{
}
diff --git a/src/net/tmwa/refinehandler.h b/src/net/tmwa/refinehandler.h
index beaedb83f..ecd08d6f4 100644
--- a/src/net/tmwa/refinehandler.h
+++ b/src/net/tmwa/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;
};