summaryrefslogtreecommitdiff
path: root/src/account-server/character.hpp
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/account-server/character.hpp
parente726c34606f85347e70a0deb6b180db03b6d0c25 (diff)
downloadmanaserv-43e99491a76bb85faf60c004e84b6c2b14cf41e7.tar.gz
manaserv-43e99491a76bb85faf60c004e84b6c2b14cf41e7.tar.bz2
manaserv-43e99491a76bb85faf60c004e84b6c2b14cf41e7.tar.xz
manaserv-43e99491a76bb85faf60c004e84b6c2b14cf41e7.zip
Standardize on the position of the const keyword
Same as for the client.
Diffstat (limited to 'src/account-server/character.hpp')
-rw-r--r--src/account-server/character.hpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/account-server/character.hpp b/src/account-server/character.hpp
index d63a0b0b..be53b9d1 100644
--- a/src/account-server/character.hpp
+++ b/src/account-server/character.hpp
@@ -35,7 +35,7 @@ class Character
{
public:
- Character(std::string const &name, int id = -1);
+ Character(const std::string &name, int id = -1);
/**
* Gets the database id of the character.
@@ -59,8 +59,8 @@ class Character
/**
* Gets the name of the character.
*/
- std::string const &getName() const { return mName; }
- void setName(const std::string& name) { mName = name; }
+ const std::string &getName() const { return mName; }
+ void setName(const std::string &name) { mName = name; }
/**
* Gets the gender of the character (male / female).
@@ -123,7 +123,7 @@ class Character
/**
* Gets the position of the character on the map.
*/
- Point const &getPosition() const { return mPos; }
+ const Point &getPosition() const { return mPos; }
void setPosition(const Point &p) { mPos = p; }
/** Add a guild to the character */
@@ -136,7 +136,7 @@ class Character
/**
* Gets a reference on the possessions.
*/
- Possessions const &getPossessions() const
+ const Possessions &getPossessions() const
{ return mPossessions; }
/**
@@ -159,8 +159,8 @@ class Character
private:
- Character(Character const &);
- Character &operator=(Character const &);
+ Character(const Character &);
+ Character &operator=(const Character &);
Possessions mPossessions; //!< All the possesions of the character.
std::string mName; //!< Name of the character.