mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 15:48:19 +00:00
Make Tag::Error values constant
This commit is contained in:
parent
b41e102a7c
commit
13af91febb
8 changed files with 8 additions and 8 deletions
|
@ -3,7 +3,7 @@
|
|||
#include "Tag.h"
|
||||
#include "Manager.h"
|
||||
|
||||
analyzer::Tag analyzer::Tag::Error;
|
||||
const analyzer::Tag analyzer::Tag::Error;
|
||||
|
||||
analyzer::Tag::Tag(type_t type, subtype_t subtype)
|
||||
: ::Tag(analyzer_mgr->GetTagEnumType(), type, subtype)
|
||||
|
|
|
@ -82,7 +82,7 @@ public:
|
|||
*/
|
||||
EnumVal* AsEnumVal() const;
|
||||
|
||||
static Tag Error;
|
||||
static const Tag Error;
|
||||
|
||||
protected:
|
||||
friend class analyzer::Manager;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
using namespace file_analysis;
|
||||
|
||||
file_analysis::Tag file_analysis::Tag::Error;
|
||||
const file_analysis::Tag file_analysis::Tag::Error;
|
||||
|
||||
file_analysis::Tag::Tag(type_t type, subtype_t subtype)
|
||||
: ::Tag(file_mgr->GetTagEnumType(), type, subtype)
|
||||
|
|
|
@ -81,7 +81,7 @@ public:
|
|||
*/
|
||||
EnumVal* AsEnumVal() const;
|
||||
|
||||
static Tag Error;
|
||||
static const Tag Error;
|
||||
|
||||
protected:
|
||||
friend class plugin::ComponentManager<Tag, Component>;
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#include "Tag.h"
|
||||
#include "Manager.h"
|
||||
|
||||
input::Tag input::Tag::Error;
|
||||
const input::Tag input::Tag::Error;
|
||||
|
||||
input::Tag::Tag(type_t type, subtype_t subtype)
|
||||
: ::Tag(input_mgr->GetTagEnumType(), type, subtype)
|
||||
|
|
|
@ -82,7 +82,7 @@ public:
|
|||
*/
|
||||
EnumVal* AsEnumVal() const;
|
||||
|
||||
static Tag Error;
|
||||
static const Tag Error;
|
||||
|
||||
protected:
|
||||
friend class plugin::ComponentManager<Tag, Component>;
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#include "Tag.h"
|
||||
#include "Manager.h"
|
||||
|
||||
logging::Tag logging::Tag::Error;
|
||||
const logging::Tag logging::Tag::Error;
|
||||
|
||||
logging::Tag::Tag(type_t type, subtype_t subtype)
|
||||
: ::Tag(log_mgr->GetTagEnumType(), type, subtype)
|
||||
|
|
|
@ -82,7 +82,7 @@ public:
|
|||
*/
|
||||
EnumVal* AsEnumVal() const;
|
||||
|
||||
static Tag Error;
|
||||
static const Tag Error;
|
||||
|
||||
protected:
|
||||
friend class plugin::ComponentManager<Tag, Component>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue