util: pass string_view to without_bropath_component()

This commit is contained in:
Max Kellermann 2020-02-04 12:49:41 +01:00
parent 0548e1255f
commit 98241bbc60
2 changed files with 7 additions and 6 deletions

View file

@ -353,7 +353,7 @@ std::string normalize_path(std::string_view path);
* @param path A file/directory path that may be within a ZEEKPATH component.
* @return *path* minus the common ZEEKPATH component (if any) removed.
*/
std::string without_bropath_component(const std::string& path);
std::string without_bropath_component(std::string_view path);
/**
* Locate a file within a given search path.