diff options
author | Max Kellermann <max@duempel.org> | 2013-10-15 22:32:39 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-15 22:49:01 +0200 |
commit | 7de96275dd6e3b6997e799413e4537561041e199 (patch) | |
tree | 4eab0c018168c14eb22f9e086917d16ef3f8f6a8 /src/ConfigData.hxx | |
parent | e13d0bf65653550c4cfe3f879441139f5242d8b1 (diff) | |
download | mpd-7de96275dd6e3b6997e799413e4537561041e199.tar.gz mpd-7de96275dd6e3b6997e799413e4537561041e199.tar.xz mpd-7de96275dd6e3b6997e799413e4537561041e199.zip |
ConfigData: use std::string for config_param::value
Diffstat (limited to 'src/ConfigData.hxx')
-rw-r--r-- | src/ConfigData.hxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ConfigData.hxx b/src/ConfigData.hxx index 85806fb05..48af72732 100644 --- a/src/ConfigData.hxx +++ b/src/ConfigData.hxx @@ -59,7 +59,8 @@ struct config_param { */ struct config_param *next; - char *value; + std::string value; + unsigned int line; std::vector<block_param> block_params; @@ -71,7 +72,7 @@ struct config_param { bool used; config_param(int _line=-1) - :next(nullptr), value(nullptr), line(_line), used(false) {} + :next(nullptr), line(_line), used(false) {} gcc_nonnull_all config_param(const char *_value, int _line=-1); |