diff options
author | Max Kellermann <max@duempel.org> | 2013-10-17 22:03:58 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-17 22:08:56 +0200 |
commit | 4817437d31ab5f3c9969b8cc228e2f1826a0fbc2 (patch) | |
tree | 63ccba6966ce55e4eec40e354e0560b406eb9483 /src/fs/Path.cxx | |
parent | 354b5a9365638068e746ca8b008171cbfe804c8a (diff) |
fs/Limits: convert macro to "constexpr"
Diffstat (limited to 'src/fs/Path.cxx')
-rw-r--r-- | src/fs/Path.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fs/Path.cxx b/src/fs/Path.cxx index 08e18762a..1c41be3b4 100644 --- a/src/fs/Path.cxx +++ b/src/fs/Path.cxx @@ -45,7 +45,7 @@ * and assumption that some weird encoding could represent some UTF-8 4 byte * sequences with single byte. */ -#define MPD_PATH_MAX_UTF8 ((MPD_PATH_MAX - 1) * 4 + 1) +static constexpr size_t MPD_PATH_MAX_UTF8 = (MPD_PATH_MAX - 1) * 4 + 1; const Domain path_domain("path"); |