aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-01-21 22:12:16 +0100
committerMax Kellermann <max@duempel.org>2015-01-21 22:12:16 +0100
commitfdba76ba47920a5dc1cc23f0be3131e4b85a041a (patch)
tree4581f49bfb5a860d8be627a37e76402d959e2507 /src
parentf900ab0121a1b1e0f86cbfde493f9860159e8e61 (diff)
downloadmpd-fdba76ba47920a5dc1cc23f0be3131e4b85a041a.tar.gz
mpd-fdba76ba47920a5dc1cc23f0be3131e4b85a041a.tar.xz
mpd-fdba76ba47920a5dc1cc23f0be3131e4b85a041a.zip
ConfigFile: convert macros to constexpr
Diffstat (limited to 'src')
-rw-r--r--src/config/ConfigFile.cxx4
1 files 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 <assert.h>
#include <stdio.h>
-#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");