mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Change EventRegistry/EventHandler methods to use std::string{_view}
This commit is contained in:
parent
78e3267c44
commit
dca587c604
4 changed files with 16 additions and 16 deletions
|
@ -13,10 +13,10 @@ class FuncType;
|
|||
|
||||
class EventHandler {
|
||||
public:
|
||||
explicit EventHandler(const char* name);
|
||||
explicit EventHandler(std::string name);
|
||||
~EventHandler();
|
||||
|
||||
const char* Name() { return name; }
|
||||
const char* Name() { return name.data(); }
|
||||
Func* LocalHandler() { return local; }
|
||||
FuncType* FType(bool check_export = true);
|
||||
|
||||
|
@ -55,7 +55,7 @@ public:
|
|||
private:
|
||||
void NewEvent(const zeek::Args& vl); // Raise new_event() meta event.
|
||||
|
||||
const char* name;
|
||||
std::string name;
|
||||
Func* local;
|
||||
FuncType* type;
|
||||
bool used; // this handler is indeed used somewhere
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue