mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 08:08:19 +00:00
Superficial changes to script-opt related code
* Rename overly generic ACCESSORS macro with ZEEK_ prefix * A few places where whitespace was noticeably wrong/distracting * Minor/obvious reference/move semantics improvements suggested by linter * Remove unused detail::Scope::Remove(), no need for deprecation
This commit is contained in:
parent
ff7d9e3d72
commit
481d989495
9 changed files with 23 additions and 46 deletions
14
src/Func.h
14
src/Func.h
|
@ -63,17 +63,11 @@ public:
|
|||
|
||||
~Func() override;
|
||||
|
||||
zeek::detail::ScriptFunc* AsScriptFunc()
|
||||
{
|
||||
return GetKind() == SCRIPT_FUNC ?
|
||||
(zeek::detail::ScriptFunc*) this : nullptr;
|
||||
}
|
||||
zeek::detail::ScriptFunc* AsScriptFunc()
|
||||
{ return GetKind() == SCRIPT_FUNC ? (detail::ScriptFunc*) this : nullptr; }
|
||||
|
||||
const zeek::detail::ScriptFunc* AsScriptFunc() const
|
||||
{
|
||||
return GetKind() == SCRIPT_FUNC ?
|
||||
(zeek::detail::ScriptFunc*) this : nullptr;
|
||||
}
|
||||
const zeek::detail::ScriptFunc* AsScriptFunc() const
|
||||
{ return GetKind() == SCRIPT_FUNC ? (detail::ScriptFunc*) this : nullptr; }
|
||||
|
||||
virtual bool IsPure() const = 0;
|
||||
FunctionFlavor Flavor() const { return GetType()->Flavor(); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue