summaryrefslogtreecommitdiffstats
path: root/src/serialize
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-04-26 17:05:18 +0200
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-04-26 17:18:21 +0200
commit43e99491a76bb85faf60c004e84b6c2b14cf41e7 (patch)
tree4aba689b76138118b4da043425fb3e8576db418c /src/serialize
parente726c34606f85347e70a0deb6b180db03b6d0c25 (diff)
downloadmanaserv-43e99491a76bb85faf60c004e84b6c2b14cf41e7.tar.gz
manaserv-43e99491a76bb85faf60c004e84b6c2b14cf41e7.tar.xz
manaserv-43e99491a76bb85faf60c004e84b6c2b14cf41e7.zip
Standardize on the position of the const keyword
Same as for the client.
Diffstat (limited to 'src/serialize')
-rw-r--r--src/serialize/characterdata.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/serialize/characterdata.hpp b/src/serialize/characterdata.hpp
index 7943f3a..a93768b 100644
--- a/src/serialize/characterdata.hpp
+++ b/src/serialize/characterdata.hpp
@@ -28,7 +28,7 @@
#include "point.h"
template< class T >
-void serializeCharacterData(T const &data, MessageOut &msg)
+void serializeCharacterData(const T &data, MessageOut &msg)
{
msg.writeByte(data.getAccountLevel());
msg.writeByte(data.getGender());
@@ -50,11 +50,11 @@ void serializeCharacterData(T const &data, MessageOut &msg)
msg.writeShort(data.getMapId());
- Point const &pos = data.getPosition();
+ const Point &pos = data.getPosition();
msg.writeShort(pos.x);
msg.writeShort(pos.y);
- Possessions const &poss = data.getPossessions();
+ const Possessions &poss = data.getPossessions();
msg.writeLong(poss.money);
for (int j = 0; j < EQUIPMENT_SLOTS; ++j)
{