From ff665b37cb92e2a1664bbab207030a1eedfbb036 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 4 Feb 2014 19:16:30 +0100 Subject: db/DatabaseListener: add method OnDatabaseSongRemoved() Decouples db/update/Remove.cpp from global variables. --- src/db/update/Editor.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/db/update/Editor.hxx') diff --git a/src/db/update/Editor.hxx b/src/db/update/Editor.hxx index b1c99095f..fc08c2659 100644 --- a/src/db/update/Editor.hxx +++ b/src/db/update/Editor.hxx @@ -31,8 +31,8 @@ class DatabaseEditor final { UpdateRemoveService remove; public: - DatabaseEditor(EventLoop &_loop) - :remove(_loop) {} + DatabaseEditor(EventLoop &_loop, DatabaseListener &_listener) + :remove(_loop, _listener) {} /** * Caller must lock the #db_mutex. -- cgit v1.2.3