diff options
author | Max Kellermann <max@duempel.org> | 2015-01-22 10:20:49 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-01-22 10:20:51 +0100 |
commit | e9b49a43e28e059930e8f05e8ed5a9026d549131 (patch) | |
tree | f6831dbb6481d2e8d25eb5fe7bf981248a976c7e /src/config/Block.hxx | |
parent | 4fa5538e2bed36903b403e1aaee2462d22b456dc (diff) | |
download | mpd-e9b49a43e28e059930e8f05e8ed5a9026d549131.tar.gz mpd-e9b49a43e28e059930e8f05e8ed5a9026d549131.tar.xz mpd-e9b49a43e28e059930e8f05e8ed5a9026d549131.zip |
config/Block: add method IsEmpty()
Diffstat (limited to 'src/config/Block.hxx')
-rw-r--r-- | src/config/Block.hxx | 5 |
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) { |