diff --git a/src/client/Client.cxx b/src/client/Client.cxx index 642f27d5a..6c47a0822 100644 --- a/src/client/Client.cxx +++ b/src/client/Client.cxx @@ -82,19 +82,19 @@ Client::SetPartition(Partition &new_partition) noexcept } Instance & -Client::GetInstance() noexcept +Client::GetInstance() const noexcept { return partition->instance; } playlist & -Client::GetPlaylist() noexcept +Client::GetPlaylist() const noexcept { return partition->playlist; } PlayerControl & -Client::GetPlayerControl() noexcept +Client::GetPlayerControl() const noexcept { return partition->pc; } diff --git a/src/client/Client.hxx b/src/client/Client.hxx index 01d232e9c..e52a7a18a 100644 --- a/src/client/Client.hxx +++ b/src/client/Client.hxx @@ -230,20 +230,20 @@ public: */ void AllowFile(Path path_fs) const; - Partition &GetPartition() noexcept { + Partition &GetPartition() const noexcept { return *partition; } void SetPartition(Partition &new_partition) noexcept; gcc_pure - Instance &GetInstance() noexcept; + Instance &GetInstance() const noexcept; gcc_pure - playlist &GetPlaylist() noexcept; + playlist &GetPlaylist() const noexcept; gcc_pure - PlayerControl &GetPlayerControl() noexcept; + PlayerControl &GetPlayerControl() const noexcept; /** * Wrapper for Instance::GetDatabase().