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