summaryrefslogtreecommitdiff
path: root/src/Notifier.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Notifier.h')
-rw-r--r--src/Notifier.h5
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