mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 15:48:19 +00:00
Simplify operator bool()'s used for Tag error checks
This commit is contained in:
parent
48873570b5
commit
b41e102a7c
4 changed files with 4 additions and 4 deletions
|
@ -43,7 +43,7 @@ public:
|
||||||
* Returns false if the tag represents an error value rather than a
|
* Returns false if the tag represents an error value rather than a
|
||||||
* legal analyzer type.
|
* legal analyzer type.
|
||||||
*/
|
*/
|
||||||
explicit operator bool() const { return *this != Tag(); }
|
explicit operator bool() const { return *this != Error; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Assignment operator.
|
* Assignment operator.
|
||||||
|
|
|
@ -42,7 +42,7 @@ public:
|
||||||
* Returns false if the tag represents an error value rather than a
|
* Returns false if the tag represents an error value rather than a
|
||||||
* legal analyzer type.
|
* legal analyzer type.
|
||||||
*/
|
*/
|
||||||
explicit operator bool() const { return *this != Tag(); }
|
explicit operator bool() const { return *this != Error; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Assignment operator.
|
* Assignment operator.
|
||||||
|
|
|
@ -43,7 +43,7 @@ public:
|
||||||
* Returns false if the tag represents an error value rather than a
|
* Returns false if the tag represents an error value rather than a
|
||||||
* legal reader type.
|
* legal reader type.
|
||||||
*/
|
*/
|
||||||
explicit operator bool() const { return *this != Tag(); }
|
explicit operator bool() const { return *this != Error; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Assignment operator.
|
* Assignment operator.
|
||||||
|
|
|
@ -43,7 +43,7 @@ public:
|
||||||
* Returns false if the tag represents an error value rather than a
|
* Returns false if the tag represents an error value rather than a
|
||||||
* legal writer type.
|
* legal writer type.
|
||||||
*/
|
*/
|
||||||
explicit operator bool() const { return *this != Tag(); }
|
explicit operator bool() const { return *this != Error; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Assignment operator.
|
* Assignment operator.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue