From 9130dc6776d1706478b11f1c19b5160b24c887da Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sat, 6 Jul 2013 18:33:59 +0900 Subject: DownloadEngine:: Use std::unique_ptr for webSocketSessionMan_ Notifier::addDownloadEventListener now takes pointer to DownloadEventListener. Session holds unique_ptr to ApiCallbackDownloadEventListener object. --- src/Notifier.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/Notifier.h') diff --git a/src/Notifier.h b/src/Notifier.h index e4586c6c..b037f6dd 100644 --- a/src/Notifier.h +++ b/src/Notifier.h @@ -55,8 +55,7 @@ class Notifier { public: Notifier(); ~Notifier(); - void addDownloadEventListener - (const std::shared_ptr& listener); + void addDownloadEventListener(DownloadEventListener* listener); // Notifies the download event to all listeners. void notifyDownloadEvent(DownloadEvent event, const RequestGroup* group); @@ -66,7 +65,7 @@ public: notifyDownloadEvent(event, group.get()); } private: - std::vector > listeners_; + std::vector listeners_; }; } // namespace aria2 -- cgit