summaryrefslogtreecommitdiff
path: root/src/config
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-01-22 10:20:49 +0100
committerMax Kellermann <max@duempel.org>2015-01-22 10:20:51 +0100
commite9b49a43e28e059930e8f05e8ed5a9026d549131 (patch)
treef6831dbb6481d2e8d25eb5fe7bf981248a976c7e /src/config
parent4fa5538e2bed36903b403e1aaee2462d22b456dc (diff)
config/Block: add method IsEmpty()
Diffstat (limited to 'src/config')
-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) {