Commit 33deb84a authored by Max Kellermann's avatar Max Kellermann

config/Data: make getters const

parent b211d31a
...@@ -34,12 +34,12 @@ struct ConfigData { ...@@ -34,12 +34,12 @@ struct ConfigData {
void Clear(); void Clear();
gcc_pure gcc_pure
const ConfigParam *GetParam(ConfigOption option) noexcept { const ConfigParam *GetParam(ConfigOption option) const noexcept {
return params[size_t(option)]; return params[size_t(option)];
} }
gcc_pure gcc_pure
const ConfigBlock *GetBlock(ConfigBlockOption option) noexcept { const ConfigBlock *GetBlock(ConfigBlockOption option) const noexcept {
return blocks[size_t(option)]; return blocks[size_t(option)];
} }
}; };
......
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