From 68f4d5bb59caf983f13a6eb6028fd2ac33936ec1 Mon Sep 17 00:00:00 2001 From: Leonardo Grasso Date: Mon, 28 Nov 2022 17:02:02 +0100 Subject: [PATCH] fix(userspace/engine): no need to use external deps Co-authored-by: Jason Dellaluce Signed-off-by: Leonardo Grasso --- userspace/engine/falco_utils.cpp | 2 +- userspace/engine/falco_utils.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/userspace/engine/falco_utils.cpp b/userspace/engine/falco_utils.cpp index 6c1f9bc3..49b05a69 100644 --- a/userspace/engine/falco_utils.cpp +++ b/userspace/engine/falco_utils.cpp @@ -75,7 +75,7 @@ void readfile(const std::string& filename, std::string& data) } namespace network { -bool is_unix_scheme(nonstd::string_view url) +bool is_unix_scheme(const std::string& url) { return url.starts_with(UNIX_SCHEME); } diff --git a/userspace/engine/falco_utils.h b/userspace/engine/falco_utils.h index 65b7980d..1619863e 100644 --- a/userspace/engine/falco_utils.h +++ b/userspace/engine/falco_utils.h @@ -49,7 +49,7 @@ uint32_t hardware_concurrency(); namespace network { static const std::string UNIX_SCHEME("unix://"); -bool is_unix_scheme(nonstd::string_view url); +bool is_unix_scheme(const std::string& url); } // namespace network } // namespace utils } // namespace falco