diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-10-02 13:38:27 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-10-02 13:38:27 +0000 |
commit | 4df1759a3636108839f9533268c8ce1b7156e132 (patch) | |
tree | c8ce12529845eecb930907829ca1ad3805f79628 /src/resources | |
parent | fcaec2c34641a5dc3da7423e81ad7b1415fe078d (diff) | |
download | mana-4df1759a3636108839f9533268c8ce1b7156e132.tar.gz mana-4df1759a3636108839f9533268c8ce1b7156e132.tar.bz2 mana-4df1759a3636108839f9533268c8ce1b7156e132.tar.xz mana-4df1759a3636108839f9533268c8ce1b7156e132.zip |
Added check for pthread library (needed for FreeBSD, still needs to be checked
on MacOS X) and some cleanups.
Diffstat (limited to 'src/resources')
-rw-r--r-- | src/resources/buddylist.cpp | 6 | ||||
-rw-r--r-- | src/resources/buddylist.h | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/resources/buddylist.cpp b/src/resources/buddylist.cpp index 2e2cdea6..e41327a5 100644 --- a/src/resources/buddylist.cpp +++ b/src/resources/buddylist.cpp @@ -41,7 +41,7 @@ BuddyList::~BuddyList() delete filename; } -void BuddyList::loadFile(void) +void BuddyList::loadFile() { char *buddy; @@ -64,7 +64,7 @@ void BuddyList::loadFile(void) inputStream.close(); } -void BuddyList::saveFile(void) +void BuddyList::saveFile() { std::string str; @@ -121,7 +121,7 @@ bool BuddyList::removeBuddy(const std::string buddy) return false; } -int BuddyList::getNumberOfElements(void) +int BuddyList::getNumberOfElements() { return buddylist.size(); } diff --git a/src/resources/buddylist.h b/src/resources/buddylist.h index 33c85723..df5d6247 100644 --- a/src/resources/buddylist.h +++ b/src/resources/buddylist.h @@ -54,7 +54,7 @@ class BuddyList : public gcn::ListModel { /** * Returns the number of buddy on the list */ - int getNumberOfElements(void); + int getNumberOfElements(); /** * Returns the buddy of the number or null @@ -65,12 +65,12 @@ class BuddyList : public gcn::ListModel { /** * Save buddy to file */ - void saveFile(void); + void saveFile(); /** * Load buddy from file */ - void loadFile(void); + void loadFile(); std::list<std::string> buddylist; /**< Buddy list */ std::list<std::string>::iterator buddyit; /**< Iterator */ |