config/Block: add method IsEmpty()

This commit is contained in:
Max Kellermann 2015-01-22 10:20:49 +01:00
parent 4fa5538e2b
commit e9b49a43e2
1 changed files with 5 additions and 0 deletions

View File

@ -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) {