StateFile: add noexcept
This commit is contained in:
parent
b985835d8b
commit
0641ce79fe
@ -148,14 +148,14 @@ try {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
StateFile::CheckModified()
|
StateFile::CheckModified() noexcept
|
||||||
{
|
{
|
||||||
if (!timer_event.IsActive() && IsModified())
|
if (!timer_event.IsActive() && IsModified())
|
||||||
timer_event.Schedule(config.interval);
|
timer_event.Schedule(config.interval);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
StateFile::OnTimeout()
|
StateFile::OnTimeout() noexcept
|
||||||
{
|
{
|
||||||
Write();
|
Write();
|
||||||
}
|
}
|
||||||
|
@ -63,7 +63,7 @@ public:
|
|||||||
/**
|
/**
|
||||||
* Schedules a write if MPD's state was modified.
|
* Schedules a write if MPD's state was modified.
|
||||||
*/
|
*/
|
||||||
void CheckModified();
|
void CheckModified() noexcept;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void Write(OutputStream &os);
|
void Write(OutputStream &os);
|
||||||
@ -82,7 +82,7 @@ private:
|
|||||||
bool IsModified() const noexcept;
|
bool IsModified() const noexcept;
|
||||||
|
|
||||||
/* callback for #timer_event */
|
/* callback for #timer_event */
|
||||||
void OnTimeout();
|
void OnTimeout() noexcept;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* STATE_FILE_H */
|
#endif /* STATE_FILE_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user