Database{Plugin,Visitor}: pass references
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user