summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2009-06-12 07:46:07 (GMT)
committerRemko Tronçon <git@el-tramo.be>2009-06-12 07:50:13 (GMT)
commit3260f09c55a6f06d9c3ac10f2eddbda68d94de4d (patch)
tree3f502e41a813d54d5a8efd2ca41f469dfefe16c5 /Swiften/Queries/IQHandler.cpp
parente9a402583b02866c87475711c57b04f499e846ef (diff)
downloadswift-contrib-3260f09c55a6f06d9c3ac10f2eddbda68d94de4d.zip
swift-contrib-3260f09c55a6f06d9c3ac10f2eddbda68d94de4d.tar.bz2
Do not register IQHandler in the constructor.
This can get us in all kinds of trouble, including that it makes it impossible to use shared_ptr<> for Requests.
Diffstat (limited to 'Swiften/Queries/IQHandler.cpp')
-rw-r--r--Swiften/Queries/IQHandler.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/Swiften/Queries/IQHandler.cpp b/Swiften/Queries/IQHandler.cpp
index b5e7e49..81bd773 100644
--- a/Swiften/Queries/IQHandler.cpp
+++ b/Swiften/Queries/IQHandler.cpp
@@ -3,12 +3,7 @@
namespace Swift {
-IQHandler::IQHandler(IQRouter* router) : router_(router) {
- router_->addHandler(this);
-}
-
IQHandler::~IQHandler() {
- router_->removeHandler(this);
}
}