From 3315c67f0f06d49f69f3b02bdabefd04542872df Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 20 Oct 2013 13:51:55 +0200 Subject: Inotify: convert anonymous enum to constexpr --- src/InotifyQueue.cxx | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'src/InotifyQueue.cxx') diff --git a/src/InotifyQueue.cxx b/src/InotifyQueue.cxx index 28b60ebee..c24816241 100644 --- a/src/InotifyQueue.cxx +++ b/src/InotifyQueue.cxx @@ -26,14 +26,12 @@ #include -enum { - /** - * Wait this long after the last change before calling - * update_enqueue(). This increases the probability that - * updates can be bundled. - */ - INOTIFY_UPDATE_DELAY_S = 5, -}; +/** + * Wait this long after the last change before calling + * update_enqueue(). This increases the probability that updates can + * be bundled. + */ +static constexpr unsigned INOTIFY_UPDATE_DELAY_S = 5; void InotifyQueue::OnTimeout() -- cgit v1.2.3