diff options
author | Max Kellermann <max@duempel.org> | 2012-08-07 21:32:08 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2012-08-07 21:32:08 +0200 |
commit | 1a75abffa531d67f3c76f8cdc0423623d1324a95 (patch) | |
tree | d6172bad2b8a3012b4ceb224081eead06db954c1 /src/DatabaseVisitor.hxx | |
parent | c6a0f5d3f9d70b890dfdc3ae0474dbcf72fe0499 (diff) |
Database{Plugin,Visitor}: pass references
Diffstat (limited to 'src/DatabaseVisitor.hxx')
-rw-r--r-- | src/DatabaseVisitor.hxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/DatabaseVisitor.hxx b/src/DatabaseVisitor.hxx index 96d24911..37b298a3 100644 --- a/src/DatabaseVisitor.hxx +++ b/src/DatabaseVisitor.hxx @@ -28,8 +28,9 @@ struct directory; struct song; struct playlist_metadata; -typedef std::function<bool(const struct directory *, GError **)> VisitDirectory; -typedef std::function<bool(struct song *, GError **)> VisitSong; -typedef std::function<bool(const struct playlist_metadata *, const struct directory *, GError **)> VisitPlaylist; +typedef std::function<bool(const directory &, GError **)> VisitDirectory; +typedef std::function<bool(struct song &, GError **)> VisitSong; +typedef std::function<bool(const playlist_metadata &, const directory &, + GError **)> VisitPlaylist; #endif |