summaryrefslogtreecommitdiff
path: root/src/StateFile.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2017-05-08 14:44:49 +0200
committerMax Kellermann <max@musicpd.org>2017-05-08 14:44:49 +0200
commit71f0ed8b7499011b53f90998ebfbd3250fd80948 (patch)
treee9c2f66fbef231858f46d878864199d46e6ce21c /src/StateFile.hxx
parentac2e4e593d407e41db49fdb9ae2da6bc1557f618 (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/StateFile.hxx')
-rw-r--r--src/StateFile.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/StateFile.hxx b/src/StateFile.hxx
index c4ceb2abb..342a20c22 100644
--- a/src/StateFile.hxx
+++ b/src/StateFile.hxx
@@ -67,14 +67,14 @@ private:
/**
* Save the current state versions for use with IsModified().
*/
- void RememberVersions();
+ void RememberVersions() noexcept;
/**
* Check if MPD's state was modified since the last
* RememberVersions() call.
*/
gcc_pure
- bool IsModified() const;
+ bool IsModified() const noexcept;
/* virtual methods from TimeoutMonitor */
void OnTimeout() override;