diff options
author | Max Kellermann <max@musicpd.org> | 2017-05-08 14:44:49 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2017-05-08 14:44:49 +0200 |
commit | 71f0ed8b7499011b53f90998ebfbd3250fd80948 (patch) | |
tree | e9c2f66fbef231858f46d878864199d46e6ce21c /src/client/Client.hxx | |
parent | ac2e4e593d407e41db49fdb9ae2da6bc1557f618 (diff) |
*: add "noexcept" to many, many function prototypes
This eliminates some overhead, because the compiler doesn't need to
consider these functions throwing.
Diffstat (limited to 'src/client/Client.hxx')
-rw-r--r-- | src/client/Client.hxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/Client.hxx b/src/client/Client.hxx index 69492b4ee..24461878e 100644 --- a/src/client/Client.hxx +++ b/src/client/Client.hxx @@ -160,7 +160,7 @@ public: }; gcc_pure - bool IsSubscribed(const char *channel_name) const { + bool IsSubscribed(const char *channel_name) const noexcept { return subscriptions.find(channel_name) != subscriptions.end(); } @@ -186,7 +186,7 @@ public: * Wrapper for Instance::GetDatabase(). */ gcc_pure - const Database *GetDatabase() const; + const Database *GetDatabase() const noexcept; /** * Wrapper for Instance::GetDatabaseOrThrow(). @@ -195,7 +195,7 @@ public: const Database &GetDatabaseOrThrow() const; gcc_pure - const Storage *GetStorage() const; + const Storage *GetStorage() const noexcept; private: /* virtual methods from class BufferedSocket */ |