summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-05-13 22:20:04 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-05-13 22:20:04 (GMT)
commit9a6d7a8c18024b400174be8008b9f19c18a8131f (patch)
tree4461fed0c6386fa865a1eeedecc05a378710c6b1 /Swift/Controllers
parente8ce0b8e97466e9fa849da6a8c0a4df77fbd0ddd (diff)
downloadswift-9a6d7a8c18024b400174be8008b9f19c18a8131f.zip
swift-9a6d7a8c18024b400174be8008b9f19c18a8131f.tar.bz2
Cut dependency from AdHocCommandSession on DiscoItem.
Diffstat (limited to 'Swift/Controllers')
-rw-r--r--Swift/Controllers/AdHocManager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Swift/Controllers/AdHocManager.cpp b/Swift/Controllers/AdHocManager.cpp
index 834aaec..e926138 100644
--- a/Swift/Controllers/AdHocManager.cpp
+++ b/Swift/Controllers/AdHocManager.cpp
@@ -8,6 +8,7 @@
#include <boost/bind.hpp>
#include <boost/shared_ptr.hpp>
+#include <boost/smart_ptr/make_shared.hpp>
#include <Swiften/Base/foreach.h>
#include <Swiften/Queries/IQRouter.h>
@@ -62,7 +63,7 @@ void AdHocManager::handleServerDiscoItemsResponse(boost::shared_ptr<DiscoItems>
void AdHocManager::handleUIEvent(boost::shared_ptr<UIEvent> event) {
boost::shared_ptr<RequestAdHocUIEvent> adHocEvent = boost::dynamic_pointer_cast<RequestAdHocUIEvent>(event);
if (adHocEvent) {
- factory_->createAdHocCommandWindow(boost::shared_ptr<OutgoingAdHocCommandSession>(new OutgoingAdHocCommandSession(adHocEvent->getCommand(), iqRouter_)));
+ factory_->createAdHocCommandWindow(boost::make_shared<OutgoingAdHocCommandSession>(adHocEvent->getCommand().getJID(), adHocEvent->getCommand().getNode(), iqRouter_));
}
}