client/Client: make several getter methods const
This commit is contained in:
parent
00ed836aa9
commit
438a6d7595
@ -82,19 +82,19 @@ Client::SetPartition(Partition &new_partition) noexcept
|
|||||||
}
|
}
|
||||||
|
|
||||||
Instance &
|
Instance &
|
||||||
Client::GetInstance() noexcept
|
Client::GetInstance() const noexcept
|
||||||
{
|
{
|
||||||
return partition->instance;
|
return partition->instance;
|
||||||
}
|
}
|
||||||
|
|
||||||
playlist &
|
playlist &
|
||||||
Client::GetPlaylist() noexcept
|
Client::GetPlaylist() const noexcept
|
||||||
{
|
{
|
||||||
return partition->playlist;
|
return partition->playlist;
|
||||||
}
|
}
|
||||||
|
|
||||||
PlayerControl &
|
PlayerControl &
|
||||||
Client::GetPlayerControl() noexcept
|
Client::GetPlayerControl() const noexcept
|
||||||
{
|
{
|
||||||
return partition->pc;
|
return partition->pc;
|
||||||
}
|
}
|
||||||
|
@ -230,20 +230,20 @@ public:
|
|||||||
*/
|
*/
|
||||||
void AllowFile(Path path_fs) const;
|
void AllowFile(Path path_fs) const;
|
||||||
|
|
||||||
Partition &GetPartition() noexcept {
|
Partition &GetPartition() const noexcept {
|
||||||
return *partition;
|
return *partition;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SetPartition(Partition &new_partition) noexcept;
|
void SetPartition(Partition &new_partition) noexcept;
|
||||||
|
|
||||||
gcc_pure
|
gcc_pure
|
||||||
Instance &GetInstance() noexcept;
|
Instance &GetInstance() const noexcept;
|
||||||
|
|
||||||
gcc_pure
|
gcc_pure
|
||||||
playlist &GetPlaylist() noexcept;
|
playlist &GetPlaylist() const noexcept;
|
||||||
|
|
||||||
gcc_pure
|
gcc_pure
|
||||||
PlayerControl &GetPlayerControl() noexcept;
|
PlayerControl &GetPlayerControl() const noexcept;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Wrapper for Instance::GetDatabase().
|
* Wrapper for Instance::GetDatabase().
|
||||||
|
Loading…
Reference in New Issue
Block a user