diff --git a/src/analyzer/Tag.h b/src/analyzer/Tag.h index 92aff38189..d45501070b 100644 --- a/src/analyzer/Tag.h +++ b/src/analyzer/Tag.h @@ -43,7 +43,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. diff --git a/src/file_analysis/Tag.h b/src/file_analysis/Tag.h index a0f6634f64..9e35251461 100644 --- a/src/file_analysis/Tag.h +++ b/src/file_analysis/Tag.h @@ -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. diff --git a/src/input/Tag.h b/src/input/Tag.h index 1d4bcc2f9f..2d7217afb0 100644 --- a/src/input/Tag.h +++ b/src/input/Tag.h @@ -43,7 +43,7 @@ public: * Returns false if the tag represents an error value rather than a * legal reader type. */ - explicit operator bool() const { return *this != Tag(); } + explicit operator bool() const { return *this != Error; } /** * Assignment operator. diff --git a/src/logging/Tag.h b/src/logging/Tag.h index 07c45826b8..c44fd2831b 100644 --- a/src/logging/Tag.h +++ b/src/logging/Tag.h @@ -43,7 +43,7 @@ public: * Returns false if the tag represents an error value rather than a * legal writer type. */ - explicit operator bool() const { return *this != Tag(); } + explicit operator bool() const { return *this != Error; } /** * Assignment operator.