summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2017-05-15 23:05:45 +0200
committerMax Kellermann <max@musicpd.org>2017-05-15 23:05:45 +0200
commitc5996c059371753420e347b7eb77fca7ad9ca7cd (patch)
tree09f430cf9f1a00dab9c25d0bce476c87454f25ba /src/client
parentcde5a0798117f3a3cc65032877c416caa8c23bb2 (diff)
*: add "noexcept" to many, many function prototypes
See commit 71f0ed8b7499011b53f90998ebfbd3250fd80948
Diffstat (limited to 'src/client')
-rw-r--r--src/client/Client.cxx6
-rw-r--r--src/client/Client.hxx10
2 files changed, 8 insertions, 8 deletions
diff --git a/src/client/Client.cxx b/src/client/Client.cxx
index 922e901ab..2b10e0b02 100644
--- a/src/client/Client.cxx
+++ b/src/client/Client.cxx
@@ -26,19 +26,19 @@
const Domain client_domain("client");
Instance &
-Client::GetInstance()
+Client::GetInstance() noexcept
{
return partition->instance;
}
playlist &
-Client::GetPlaylist()
+Client::GetPlaylist() noexcept
{
return partition->playlist;
}
PlayerControl &
-Client::GetPlayerControl()
+Client::GetPlayerControl() noexcept
{
return partition->pc;
}
diff --git a/src/client/Client.hxx b/src/client/Client.hxx
index 762eccd18..f23f1324d 100644
--- a/src/client/Client.hxx
+++ b/src/client/Client.hxx
@@ -188,24 +188,24 @@ public:
*/
void AllowFile(Path path_fs) const;
- Partition &GetPartition() {
+ Partition &GetPartition() noexcept {
return *partition;
}
- void SetPartition(Partition &new_partition) {
+ void SetPartition(Partition &new_partition) noexcept {
partition = &new_partition;
// TODO: set various idle flags?
}
gcc_pure
- Instance &GetInstance();
+ Instance &GetInstance() noexcept;
gcc_pure
- playlist &GetPlaylist();
+ playlist &GetPlaylist() noexcept;
gcc_pure
- PlayerControl &GetPlayerControl();
+ PlayerControl &GetPlayerControl() noexcept;
/**
* Wrapper for Instance::GetDatabase().