From e9b49a43e28e059930e8f05e8ed5a9026d549131 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 22 Jan 2015 10:20:49 +0100 Subject: [PATCH] config/Block: add method IsEmpty() --- src/config/Block.hxx | 5 +++++ 1 file changed, 5 insertions(+) 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) {