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
|
@ -42,7 +42,7 @@ public:
|
|||
* Returns false if the tag represents an error value rather than a
|
||||
* legal analyzer type.
|
||||
*/
|
||||
explicit operator bool() const { return *this != Tag(); }
|
||||
explicit operator bool() const { return *this != Error; }
|
||||
|
||||
/**
|
||||
* Assignment operator.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue