From 1715d0afe44a282a356ca88e47c92ec556f094dd Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Fri, 27 Mar 2009 01:42:53 +0100 Subject: 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. --- src/resources/buddylist.h | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) (limited to 'src/resources/buddylist.h') 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 -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 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 */ -- cgit v1.2.3-70-g09d2