diff options
author | Remko Tronçon <git@el-tramo.be> | 2009-07-15 07:42:18 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2009-07-15 07:42:18 (GMT) |
commit | 0930cd940963be0edfe7c80b4925babca0e01443 (patch) | |
tree | b2a57761bfdf1a14ea75ea1a9871c70d85ff8024 /Swiften/EventLoop/MainEventLoop.cpp | |
parent | d2625df30861a4caa984031a6990d19dfebc3367 (diff) | |
download | swift-contrib-0930cd940963be0edfe7c80b4925babca0e01443.zip swift-contrib-0930cd940963be0edfe7c80b4925babca0e01443.tar.bz2 |
Use shared_ptr for EventLoop owners.
Diffstat (limited to 'Swiften/EventLoop/MainEventLoop.cpp')
-rw-r--r-- | Swiften/EventLoop/MainEventLoop.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Swiften/EventLoop/MainEventLoop.cpp b/Swiften/EventLoop/MainEventLoop.cpp index c306d3f..d7de6c6 100644 --- a/Swiften/EventLoop/MainEventLoop.cpp +++ b/Swiften/EventLoop/MainEventLoop.cpp @@ -23,11 +23,11 @@ void MainEventLoop::resetInstance() { instance_ = 0; } -void MainEventLoop::postEvent(boost::function<void ()> event, void* owner) { +void MainEventLoop::postEvent(boost::function<void ()> event, boost::shared_ptr<EventOwner> owner) { getInstance()->postEvent(event, owner); } -void MainEventLoop::removeEventsFromOwner(void* owner) { +void MainEventLoop::removeEventsFromOwner(boost::shared_ptr<EventOwner> owner) { getInstance()->removeEventsFromOwner(owner); } |