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/StateFile.cxx | |
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/StateFile.cxx')
-rw-r--r-- | src/StateFile.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/StateFile.cxx b/src/StateFile.cxx index 7035e0e12..cc02d0ff7 100644 --- a/src/StateFile.cxx +++ b/src/StateFile.cxx @@ -50,7 +50,7 @@ StateFile::StateFile(AllocatedPath &&_path, } void -StateFile::RememberVersions() +StateFile::RememberVersions() noexcept { prev_volume_version = sw_volume_state_get_hash(); prev_output_version = audio_output_state_get_version(); @@ -59,7 +59,7 @@ StateFile::RememberVersions() } bool -StateFile::IsModified() const +StateFile::IsModified() const noexcept { return prev_volume_version != sw_volume_state_get_hash() || prev_output_version != audio_output_state_get_version() || |