diff options
author | Remko Tronçon <git@el-tramo.be> | 2009-06-12 07:46:07 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2009-06-12 07:50:13 (GMT) |
commit | 3260f09c55a6f06d9c3ac10f2eddbda68d94de4d (patch) | |
tree | 3f502e41a813d54d5a8efd2ca41f469dfefe16c5 /Swiften/Queries/IQHandler.cpp | |
parent | e9a402583b02866c87475711c57b04f499e846ef (diff) | |
download | swift-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.cpp | 5 |
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); } } |