mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 23:58:20 +00:00
Use const-reference in plugin::Manager::MetaHookPost for minor performance gain
This commit is contained in:
parent
51f17534d4
commit
0d62ed4783
2 changed files with 2 additions and 2 deletions
|
@ -942,7 +942,7 @@ void Manager::MetaHookPre(HookType hook, const HookArgumentList& args) const
|
||||||
plugin->MetaHookPre(hook, args);
|
plugin->MetaHookPre(hook, args);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Manager::MetaHookPost(HookType hook, const HookArgumentList& args, HookArgument result) const
|
void Manager::MetaHookPost(HookType hook, const HookArgumentList& args, const HookArgument& result) const
|
||||||
{
|
{
|
||||||
if ( hook_list* l = hooks[HOOK_CALL_FUNCTION] )
|
if ( hook_list* l = hooks[HOOK_CALL_FUNCTION] )
|
||||||
for ( const auto& [hook_type, plugin] : *l )
|
for ( const auto& [hook_type, plugin] : *l )
|
||||||
|
|
|
@ -414,7 +414,7 @@ private:
|
||||||
bool ActivateDynamicPluginInternal(const std::string& name, bool ok_if_not_found, std::vector<std::string>* errors);
|
bool ActivateDynamicPluginInternal(const std::string& name, bool ok_if_not_found, std::vector<std::string>* errors);
|
||||||
void UpdateInputFiles();
|
void UpdateInputFiles();
|
||||||
void MetaHookPre(HookType hook, const HookArgumentList& args) const;
|
void MetaHookPre(HookType hook, const HookArgumentList& args) const;
|
||||||
void MetaHookPost(HookType hook, const HookArgumentList& args, HookArgument result) const;
|
void MetaHookPost(HookType hook, const HookArgumentList& args, const HookArgument& result) const;
|
||||||
|
|
||||||
// Plugins that were explicitly requested to be activated, but failed to
|
// Plugins that were explicitly requested to be activated, but failed to
|
||||||
// load at first.
|
// load at first.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue