diff options
author | Max Kellermann <max@duempel.org> | 2012-08-02 18:20:43 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2012-08-02 19:12:27 +0200 |
commit | af1c497759dd9289e2eadfe4e33ee6164ad7cd9a (patch) | |
tree | 41db26d54faf1cbc0f212cff6c4deaed47ad5449 /src | |
parent | 8e331cfc65b6817a147dfaac4d9c4d01414782ac (diff) | |
download | mpd-af1c497759dd9289e2eadfe4e33ee6164ad7cd9a.tar.gz mpd-af1c497759dd9289e2eadfe4e33ee6164ad7cd9a.tar.xz mpd-af1c497759dd9289e2eadfe4e33ee6164ad7cd9a.zip |
DatabasePlugin: make Visit() const
Diffstat (limited to 'src')
-rw-r--r-- | src/DatabasePlugin.hxx | 4 | ||||
-rw-r--r-- | src/db/SimpleDatabasePlugin.cxx | 4 | ||||
-rw-r--r-- | src/db/SimpleDatabasePlugin.hxx | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/src/DatabasePlugin.hxx b/src/DatabasePlugin.hxx index 71ad88ac5..7ad0a8ee1 100644 --- a/src/DatabasePlugin.hxx +++ b/src/DatabasePlugin.hxx @@ -59,7 +59,7 @@ public: * directory (UTF-8) */ virtual struct song *GetSong(const char *uri_utf8, - GError **error_r) = 0; + GError **error_r) const = 0; /** * Visit the selected entities. @@ -68,7 +68,7 @@ public: VisitDirectory visit_directory, VisitSong visit_song, VisitPlaylist visit_playlist, - GError **error_r) = 0; + GError **error_r) const = 0; }; struct DatabasePlugin { diff --git a/src/db/SimpleDatabasePlugin.cxx b/src/db/SimpleDatabasePlugin.cxx index 8398eedc7..4247c89b1 100644 --- a/src/db/SimpleDatabasePlugin.cxx +++ b/src/db/SimpleDatabasePlugin.cxx @@ -208,7 +208,7 @@ SimpleDatabase::Close() } struct song * -SimpleDatabase::GetSong(const char *uri, GError **error_r) +SimpleDatabase::GetSong(const char *uri, GError **error_r) const { assert(root != NULL); @@ -241,7 +241,7 @@ SimpleDatabase::Visit(const struct db_selection *selection, VisitDirectory visit_directory, VisitSong visit_song, VisitPlaylist visit_playlist, - GError **error_r) + GError **error_r) const { const struct directory *directory = LookupDirectory(selection->uri); if (directory == NULL) { diff --git a/src/db/SimpleDatabasePlugin.hxx b/src/db/SimpleDatabasePlugin.hxx index 6582118d2..34312ff89 100644 --- a/src/db/SimpleDatabasePlugin.hxx +++ b/src/db/SimpleDatabasePlugin.hxx @@ -59,12 +59,12 @@ public: virtual bool Open(GError **error_r) override; virtual void Close() override; virtual struct song *GetSong(const char *uri_utf8, - GError **error_r) override; + GError **error_r) const override; virtual bool Visit(const struct db_selection *selection, VisitDirectory visit_directory, VisitSong visit_song, VisitPlaylist visit_playlist, - GError **error_r) override; + GError **error_r) const override; protected: bool Configure(const struct config_param *param, GError **error_r); |