Commit ef38330d authored by Max Kellermann's avatar Max Kellermann

config/Block: add method SetUsed()

parent 987b60ae
......@@ -94,6 +94,10 @@ struct ConfigBlock {
return block_params.empty();
}
void SetUsed() const noexcept {
used = true;
}
template<typename N, typename V>
gcc_nonnull_all
void AddBlockParam(N &&_name, V &&_value, int _line=-1) noexcept {
......
......@@ -85,7 +85,7 @@ config_get_block(ConfigBlockOption option) noexcept
{
const auto *block = config_data.blocks[unsigned(option)];
if (block != nullptr)
block->used = true;
block->SetUsed();
return block;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment