Database{Plugin,Visitor}: pass references

This commit is contained in:
Max Kellermann
2012-08-07 21:32:08 +02:00
parent c6a0f5d3f9
commit 1a75abffa5
10 changed files with 95 additions and 91 deletions

View File

@@ -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);
}