diff options
author | Max Kellermann <max@duempel.org> | 2013-10-20 13:48:39 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-20 13:50:34 +0200 |
commit | b879bcb1eb2cf7e339d206089dcda033fc05239a (patch) | |
tree | dc829f17e3cdfddab9667dac0ae118187cbde501 | |
parent | ae99135c8d0cb6d1c0b212c0ebe1458585c9d2c6 (diff) | |
download | mpd-b879bcb1eb2cf7e339d206089dcda033fc05239a.tar.gz mpd-b879bcb1eb2cf7e339d206089dcda033fc05239a.tar.xz mpd-b879bcb1eb2cf7e339d206089dcda033fc05239a.zip |
UpdateWalk: convert anonymous enum to constexpr
-rw-r--r-- | src/UpdateWalk.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/UpdateWalk.cxx b/src/UpdateWalk.cxx index a156cf3e9..cf8ade9f3 100644 --- a/src/UpdateWalk.cxx +++ b/src/UpdateWalk.cxx @@ -57,10 +57,8 @@ bool modified; #ifndef WIN32 -enum { - DEFAULT_FOLLOW_INSIDE_SYMLINKS = true, - DEFAULT_FOLLOW_OUTSIDE_SYMLINKS = true, -}; +static constexpr bool DEFAULT_FOLLOW_INSIDE_SYMLINKS = true; +static constexpr bool DEFAULT_FOLLOW_OUTSIDE_SYMLINKS = true; static bool follow_inside_symlinks; static bool follow_outside_symlinks; |