From 0641ce79fefd0f8df5dc9d47e5cb0e25fed6e781 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 24 Apr 2019 14:54:17 +0200 Subject: [PATCH] StateFile: add `noexcept` --- src/StateFile.cxx | 4 ++-- src/StateFile.hxx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/StateFile.cxx b/src/StateFile.cxx index b8ad82e01..d9f333393 100644 --- a/src/StateFile.cxx +++ b/src/StateFile.cxx @@ -148,14 +148,14 @@ try { } void -StateFile::CheckModified() +StateFile::CheckModified() noexcept { if (!timer_event.IsActive() && IsModified()) timer_event.Schedule(config.interval); } void -StateFile::OnTimeout() +StateFile::OnTimeout() noexcept { Write(); } diff --git a/src/StateFile.hxx b/src/StateFile.hxx index 826bfefb7..b36008226 100644 --- a/src/StateFile.hxx +++ b/src/StateFile.hxx @@ -63,7 +63,7 @@ public: /** * Schedules a write if MPD's state was modified. */ - void CheckModified(); + void CheckModified() noexcept; private: void Write(OutputStream &os); @@ -82,7 +82,7 @@ private: bool IsModified() const noexcept; /* callback for #timer_event */ - void OnTimeout(); + void OnTimeout() noexcept; }; #endif /* STATE_FILE_H */