From 7de96275dd6e3b6997e799413e4537561041e199 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 15 Oct 2013 22:32:39 +0200 Subject: ConfigData: use std::string for config_param::value --- src/ConfigData.hxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/ConfigData.hxx') 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_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); -- cgit v1.2.3