From 1a75abffa531d67f3c76f8cdc0423623d1324a95 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 7 Aug 2012 21:32:08 +0200 Subject: Database{Plugin,Visitor}: pass references --- src/DatabasePlugin.hxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/DatabasePlugin.hxx') diff --git a/src/DatabasePlugin.hxx b/src/DatabasePlugin.hxx index 9024c7a1..c24896fc 100644 --- a/src/DatabasePlugin.hxx +++ b/src/DatabasePlugin.hxx @@ -64,13 +64,13 @@ public: /** * Visit the selected entities. */ - virtual bool Visit(const struct db_selection *selection, + virtual bool Visit(const db_selection &selection, VisitDirectory visit_directory, VisitSong visit_song, VisitPlaylist visit_playlist, GError **error_r) const = 0; - bool Visit(const struct db_selection *selection, + bool Visit(const db_selection &selection, VisitDirectory visit_directory, VisitSong visit_song, GError **error_r) const { @@ -78,7 +78,7 @@ public: VisitPlaylist(), error_r); } - bool Visit(const struct db_selection *selection, VisitSong visit_song, + bool Visit(const db_selection &selection, VisitSong visit_song, GError **error_r) const { return Visit(selection, VisitDirectory(), visit_song, error_r); } -- cgit v1.2.3