From fdba76ba47920a5dc1cc23f0be3131e4b85a041a Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 21 Jan 2015 22:12:16 +0100 Subject: ConfigFile: convert macros to constexpr --- src/config/ConfigFile.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config/ConfigFile.cxx b/src/config/ConfigFile.cxx index 75a782bfe..258482db9 100644 --- a/src/config/ConfigFile.cxx +++ b/src/config/ConfigFile.cxx @@ -34,9 +34,9 @@ #include #include -#define MAX_STRING_SIZE MPD_PATH_MAX+80 +static constexpr size_t MAX_STRING_SIZE = MPD_PATH_MAX + 80; -#define CONF_COMMENT '#' +static constexpr char CONF_COMMENT = '#'; static constexpr Domain config_file_domain("config_file"); -- cgit v1.2.3