summaryrefslogtreecommitdiff
path: root/src/resources/buddylist.cpp
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.cpp
parent511d9ac780e094767e806c9a448ac973279dd4c8 (diff)
downloadmana-client-1715d0afe44a282a356ca88e47c92ec556f094dd.tar.gz
mana-client-1715d0afe44a282a356ca88e47c92ec556f094dd.tar.bz2
mana-client-1715d0afe44a282a356ca88e47c92ec556f094dd.tar.xz
mana-client-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.cpp')
-rw-r--r--src/resources/buddylist.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/resources/buddylist.cpp b/src/resources/buddylist.cpp
index 24198f59..4d44ee3d 100644
--- a/src/resources/buddylist.cpp
+++ b/src/resources/buddylist.cpp
@@ -19,16 +19,16 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#include "resources/buddylist.h"
+
+#include "main.h"
+#include "configuration.h"
+
#include <algorithm>
#include <cstring>
#include <iostream>
#include <fstream>
-#include "buddylist.h"
-
-#include "../main.h"
-#include "../configuration.h"
-
BuddyList::BuddyList()
{
// TODO: A buddy list would have to use the Configuration class to store
@@ -82,7 +82,7 @@ void BuddyList::saveFile()
outputStream.close();
}
-bool BuddyList::addBuddy(const std::string buddy)
+bool BuddyList::addBuddy(const std::string &buddy)
{
if (find(mBuddylist.begin(), mBuddylist.end(), buddy) != mBuddylist.end())
{
@@ -98,7 +98,7 @@ bool BuddyList::addBuddy(const std::string buddy)
return true;
}
-bool BuddyList::removeBuddy(const std::string buddy)
+bool BuddyList::removeBuddy(const std::string &buddy)
{
BuddyIterator i = find(mBuddylist.begin(), mBuddylist.end(), buddy);
@@ -111,7 +111,7 @@ bool BuddyList::removeBuddy(const std::string buddy)
return false;
}
-int BuddyList::getNumberOfElements()
+int BuddyList::getNumberOfElements()
{
return mBuddylist.size();
}