From b879bcb1eb2cf7e339d206089dcda033fc05239a Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 20 Oct 2013 13:48:39 +0200 Subject: UpdateWalk: convert anonymous enum to constexpr --- src/UpdateWalk.cxx | 6 ++---- 1 file 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; -- cgit v1.2.3