config/Block: allow moving name and value

This commit is contained in:
Max Kellermann
2018-07-17 20:16:12 +02:00
parent e9a4570891
commit af33a9f4b8
3 changed files with 13 additions and 9 deletions

View File

@@ -135,7 +135,7 @@ try {
const auto *path = config_get_param(ConfigOption::DB_FILE);
ConfigBlock block(path != nullptr ? path->line : -1);
if (path != nullptr)
block.AddBlockParam("path", path->value.c_str(), path->line);
block.AddBlockParam("path", path->value, path->line);
Database *db = plugin->create(init.GetEventLoop(),
init.GetEventLoop(),