config/Block: add method IsEmpty()
This commit is contained in:
parent
4fa5538e2b
commit
e9b49a43e2
|
@ -90,6 +90,11 @@ struct ConfigBlock {
|
||||||
return line < 0;
|
return line < 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gcc_pure
|
||||||
|
bool IsEmpty() const {
|
||||||
|
return block_params.empty();
|
||||||
|
}
|
||||||
|
|
||||||
gcc_nonnull_all
|
gcc_nonnull_all
|
||||||
void AddBlockParam(const char *_name, const char *_value,
|
void AddBlockParam(const char *_name, const char *_value,
|
||||||
int _line=-1) {
|
int _line=-1) {
|
||||||
|
|
Loading…
Reference in New Issue