diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-07-06 18:33:59 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-07-06 18:33:59 +0900 |
| commit | 9130dc6776d1706478b11f1c19b5160b24c887da (patch) | |
| tree | 3fbc0a92eab5ca6b9f8e0cfce76d4e5cc21cd509 /src/Notifier.h | |
| parent | 81f46fbf924722e22e141119b4a0bfb3ed136fd0 (diff) | |
DownloadEngine:: Use std::unique_ptr for webSocketSessionMan_
Notifier::addDownloadEventListener now takes pointer to
DownloadEventListener. Session holds unique_ptr to
ApiCallbackDownloadEventListener object.
Diffstat (limited to 'src/Notifier.h')
| -rw-r--r-- | src/Notifier.h | 5 |
1 files changed, 2 insertions, 3 deletions
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<DownloadEventListener>& 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<std::shared_ptr<DownloadEventListener> > listeners_; + std::vector<DownloadEventListener*> listeners_; }; } // namespace aria2 |
