diff options
author | Max Kellermann <max@duempel.org> | 2014-12-09 21:57:07 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-12-09 21:57:07 +0100 |
commit | bb39fffab9734c9d1ee88ac465bbb47bda4f64bb (patch) | |
tree | c52ba433d499d664809dff4f994610a59e17aab9 | |
parent | f52aefb34193cad315e283245c1ea9fb5b08fe4c (diff) | |
download | mpd-bb39fffab9734c9d1ee88ac465bbb47bda4f64bb.tar.gz mpd-bb39fffab9734c9d1ee88ac465bbb47bda4f64bb.tar.xz mpd-bb39fffab9734c9d1ee88ac465bbb47bda4f64bb.zip |
ConfigParser: make the static arrays "const"
Diffstat (limited to '')
-rw-r--r-- | src/config/ConfigParser.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/config/ConfigParser.cxx b/src/config/ConfigParser.cxx index 3535c9a13..da7d58e49 100644 --- a/src/config/ConfigParser.cxx +++ b/src/config/ConfigParser.cxx @@ -23,8 +23,8 @@ bool get_bool(const char *value, bool *value_r) { - static const char *t[] = { "yes", "true", "1", nullptr }; - static const char *f[] = { "no", "false", "0", nullptr }; + static const char *const t[] = { "yes", "true", "1", nullptr }; + static const char *const f[] = { "no", "false", "0", nullptr }; if (string_array_contains(t, value)) { *value_r = true; |