From 4817437d31ab5f3c9969b8cc228e2f1826a0fbc2 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 17 Oct 2013 22:03:58 +0200 Subject: fs/Limits: convert macro to "constexpr" --- src/fs/Path.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/fs/Path.cxx') 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"); -- cgit v1.2.3