ConfigData: use std::string for config_param::value

This commit is contained in:
Max Kellermann
2013-10-15 22:32:39 +02:00
parent e13d0bf656
commit 7de96275dd
10 changed files with 44 additions and 33 deletions

View File

@@ -58,12 +58,11 @@ block_param::GetBoolValue() const
}
config_param::config_param(const char *_value, int _line)
:next(nullptr), value(g_strdup(_value)), line(_line) {}
:next(nullptr), value(_value), line(_line) {}
config_param::~config_param()
{
delete next;
g_free(value);
}
const block_param *