aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/config/Block.hxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/config/Block.hxx b/src/config/Block.hxx
index 23b064695..9e72018ca 100644
--- a/src/config/Block.hxx
+++ b/src/config/Block.hxx
@@ -90,6 +90,11 @@ struct ConfigBlock {
return line < 0;
}
+ gcc_pure
+ bool IsEmpty() const {
+ return block_params.empty();
+ }
+
gcc_nonnull_all
void AddBlockParam(const char *_name, const char *_value,
int _line=-1) {