mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 23:28:20 +00:00
Mark one-parameter constructors as explicit & use override where possible
This commit marks (hopefully) ever one-parameter constructor as explicit. It also uses override in (hopefully) all circumstances where a virtual method is overridden. There are a very few other minor changes - most of them were necessary to get everything to compile (like one additional constructor). In one case I changed an implicit operation to an explicit string conversion - I think the automatically chosen conversion was much more convoluted. This took longer than I want to admit but not as long as I feared :)
This commit is contained in:
parent
1f2bf50b49
commit
6d612ced3d
173 changed files with 1052 additions and 1046 deletions
10
src/Event.h
10
src/Event.h
|
@ -16,7 +16,7 @@ public:
|
|||
Event(EventHandlerPtr handler, val_list* args,
|
||||
SourceID src = SOURCE_LOCAL, analyzer::ID aid = 0,
|
||||
TimerMgr* mgr = 0, BroObj* obj = 0);
|
||||
~Event();
|
||||
~Event() override;
|
||||
|
||||
void SetNext(Event* n) { next_event = n; }
|
||||
Event* NextEvent() const { return next_event; }
|
||||
|
@ -27,7 +27,7 @@ public:
|
|||
EventHandlerPtr Handler() const { return handler; }
|
||||
val_list* Args() const { return args; }
|
||||
|
||||
void Describe(ODesc* d) const;
|
||||
void Describe(ODesc* d) const override;
|
||||
|
||||
protected:
|
||||
friend class EventMgr;
|
||||
|
@ -78,9 +78,9 @@ extern uint64 num_events_dispatched;
|
|||
class EventMgr : public BroObj {
|
||||
public:
|
||||
EventMgr();
|
||||
~EventMgr();
|
||||
~EventMgr() override;
|
||||
|
||||
void QueueEvent(EventHandlerPtr h, val_list* vl,
|
||||
void QueueEvent(const EventHandlerPtr &h, val_list* vl,
|
||||
SourceID src = SOURCE_LOCAL, analyzer::ID aid = 0,
|
||||
TimerMgr* mgr = 0, BroObj* obj = 0)
|
||||
{
|
||||
|
@ -118,7 +118,7 @@ public:
|
|||
// Returns a peer record describing the local Bro.
|
||||
RecordVal* GetLocalPeerVal();
|
||||
|
||||
void Describe(ODesc* d) const;
|
||||
void Describe(ODesc* d) const override;
|
||||
|
||||
protected:
|
||||
void QueueEvent(Event* event);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue