Commit 0641ce79 authored by Max Kellermann's avatar Max Kellermann

StateFile: add `noexcept`

parent b985835d
......@@ -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();
}
......@@ -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 */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment