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.h | |
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.h')
-rw-r--r-- | Swiften/Queries/IQHandler.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/Swiften/Queries/IQHandler.h b/Swiften/Queries/IQHandler.h index 7a8d008..7389b3a 100644 --- a/Swiften/Queries/IQHandler.h +++ b/Swiften/Queries/IQHandler.h @@ -10,18 +10,9 @@ namespace Swift { class IQHandler { public: - IQHandler(IQRouter* router); virtual ~IQHandler(); virtual bool handleIQ(boost::shared_ptr<IQ>) = 0; - - protected: - IQRouter* getRouter() const { - return router_; - } - - private: - IQRouter* router_; }; } |