aboutsummaryrefslogtreecommitdiffstats
path: root/src/InotifyQueue.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-20 13:51:55 +0200
committerMax Kellermann <max@duempel.org>2013-10-20 13:51:55 +0200
commit3315c67f0f06d49f69f3b02bdabefd04542872df (patch)
treedd8b9a5c44137635e54938d810801d6dfb86004a /src/InotifyQueue.cxx
parentb879bcb1eb2cf7e339d206089dcda033fc05239a (diff)
downloadmpd-3315c67f0f06d49f69f3b02bdabefd04542872df.tar.gz
mpd-3315c67f0f06d49f69f3b02bdabefd04542872df.tar.xz
mpd-3315c67f0f06d49f69f3b02bdabefd04542872df.zip
Inotify: convert anonymous enum to constexpr
Diffstat (limited to '')
-rw-r--r--src/InotifyQueue.cxx14
1 files changed, 6 insertions, 8 deletions
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 <string.h>
-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()