summaryrefslogtreecommitdiff
path: root/src/resources/buddylist.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-03-27 01:42:53 +0100
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-03-27 01:43:55 +0100
commit1715d0afe44a282a356ca88e47c92ec556f094dd (patch)
tree36dcaa69dcf0165c33d7da1c1cc1a9f5fb7e228f /src/resources/buddylist.h
parent511d9ac780e094767e806c9a448ac973279dd4c8 (diff)
downloadmana-1715d0afe44a282a356ca88e47c92ec556f094dd.tar.gz
mana-1715d0afe44a282a356ca88e47c92ec556f094dd.tar.bz2
mana-1715d0afe44a282a356ca88e47c92ec556f094dd.tar.xz
mana-1715d0afe44a282a356ca88e47c92ec556f094dd.zip
Fixed include structure in resource/ directory
There is also a new rule that trivial constructors and destructors should no longer be trivially "documented", since this just takes up space with no gain.
Diffstat (limited to 'src/resources/buddylist.h')
-rw-r--r--src/resources/buddylist.h19
1 files changed, 6 insertions, 13 deletions
diff --git a/src/resources/buddylist.h b/src/resources/buddylist.h
index 33fcde4d..2d952772 100644
--- a/src/resources/buddylist.h
+++ b/src/resources/buddylist.h
@@ -27,32 +27,25 @@
#include <guichan/listmodel.hpp>
-class BuddyList : public gcn::ListModel {
+class BuddyList : public gcn::ListModel
+{
public:
- /**
- * Constructor
- */
BuddyList();
/**
- * Destructor
- */
- virtual ~BuddyList() { }
-
- /**
* Adds buddy to the list
*/
- bool addBuddy(const std::string buddy);
+ bool addBuddy(const std::string &buddy);
/**
* Removes buddy from the list
*/
- bool removeBuddy(const std::string buddy);
+ bool removeBuddy(const std::string &buddy);
/**
* Returns the number of buddy on the list
*/
- int getNumberOfElements();
+ int getNumberOfElements();
/**
* Returns the buddy of the number or null
@@ -73,7 +66,7 @@ class BuddyList : public gcn::ListModel {
typedef std::list<std::string> Buddies;
typedef Buddies::iterator BuddyIterator;
Buddies mBuddylist; /**< Buddy list */
- std::string mFilename; /* File to work with */
+ std::string mFilename; /**< File to work with */
};
#endif /* BUDDYLIST_H */