mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 23:58:20 +00:00
plugin/Manager: migrate to std::string_view
This commit is contained in:
parent
95e646fca7
commit
298fd125ae
2 changed files with 5 additions and 3 deletions
|
@ -478,9 +478,9 @@ Manager::bif_init_func_map* Manager::BifFilesInternal()
|
|||
return bifs;
|
||||
}
|
||||
|
||||
Plugin* Manager::LookupPluginByPath(std::string path)
|
||||
Plugin* Manager::LookupPluginByPath(std::string_view _path)
|
||||
{
|
||||
path = normalize_path(path);
|
||||
auto path = normalize_path(_path);
|
||||
|
||||
if ( is_file(path) )
|
||||
path = SafeDirname(path).result;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue