diff options
author | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2009-12-06 18:39:49 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2009-12-06 18:46:49 +0100 |
commit | c0a5b22aa8f90c3d5de4a4b7495cf157d9a189d1 (patch) | |
tree | e3982ab486c539a88d0c3eaad37c0fdfaa1b1f8f /src/chat-server/post.hpp | |
parent | 49cd2c5d236294fa99a612dbf4833c72a7f89de8 (diff) | |
download | manaserv-c0a5b22aa8f90c3d5de4a4b7495cf157d9a189d1.tar.gz manaserv-c0a5b22aa8f90c3d5de4a4b7495cf157d9a189d1.tar.bz2 manaserv-c0a5b22aa8f90c3d5de4a4b7495cf157d9a189d1.tar.xz manaserv-c0a5b22aa8f90c3d5de4a4b7495cf157d9a189d1.zip |
A host of code style changes
Removed pointless void in method parameter lists, fixed methods and
variables that started with upper case, removed pointless 'const' for
stuff passed by value, made some getters const, etc.
Diffstat (limited to 'src/chat-server/post.hpp')
-rw-r--r-- | src/chat-server/post.hpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/chat-server/post.hpp b/src/chat-server/post.hpp index 26c60918..2934db4d 100644 --- a/src/chat-server/post.hpp +++ b/src/chat-server/post.hpp @@ -66,7 +66,7 @@ public: /** * Gets the type of the letter. (unused) */ - unsigned int getType(void) const + unsigned int getType() const { return mType; } /** @@ -90,7 +90,7 @@ public: * Get the text contents of letter * @return String containing the text */ - std::string getContents(); + std::string getContents() const; /** * Add an attachment @@ -103,18 +103,18 @@ public: * Get the character receiving the letter * @return Returns the Character who will receive the letter */ - Character* getReceiver(); + Character *getReceiver() const; /** * Get the character who sent the letter * @return Returns the Character who sent the letter */ - Character* getSender(); + Character *getSender() const; /** * Get the attachments */ - std::vector<InventoryItem> getAttachments(); + std::vector<InventoryItem> getAttachments() const; private: unsigned int mId; @@ -170,7 +170,7 @@ public: * @param player Character that is getting post * @return Returns the post for that character */ - Post* getPost(Character *player); + Post *getPost(Character *player) const; /** * Remove the post for character |