From fc7c2dd9140b38df288450a4732297b53188e87a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Remko=20Tron=C3=A7on?= Date: Sat, 8 May 2010 19:13:42 +0200 Subject: Remove duplicate MUCBookmark structure. diff --git a/Swiften/MUC/MUCBookmarkManager.cpp b/Swiften/MUC/MUCBookmarkManager.cpp index 400eb2b..aa8f026 100644 --- a/Swiften/MUC/MUCBookmarkManager.cpp +++ b/Swiften/MUC/MUCBookmarkManager.cpp @@ -25,6 +25,8 @@ void MUCBookmarkManager::handleBookmarksReceived(boost::shared_ptr payl if (error) { return; } + storage = payload; + std::vector receivedBookmarks; foreach (Storage::Conference conference, payload->getConferences()) { String name = (!conference.name.isEmpty()) ? conference.name : conference.jid.getNode(); @@ -81,7 +83,6 @@ void MUCBookmarkManager::addBookmark(const MUCBookmark& bookmark) { void MUCBookmarkManager::removeBookmark(const MUCBookmark& bookmark) { - // FIXME: Clean this up using proper STL std::vector::iterator it; for (it = bookmarks_.begin(); it != bookmarks_.end(); it++) { if ((*it) == bookmark) { diff --git a/Swiften/MUC/MUCBookmarkManager.h b/Swiften/MUC/MUCBookmarkManager.h index ffa903f..594a805 100644 --- a/Swiften/MUC/MUCBookmarkManager.h +++ b/Swiften/MUC/MUCBookmarkManager.h @@ -41,5 +41,6 @@ namespace Swift { private: std::vector bookmarks_; IQRouter* iqRouter_; + boost::shared_ptr storage; }; } -- cgit v0.10.2-6-g49f6