From e37a375c1839129363f24e35d2bbda80db05810b Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Fri, 2 Aug 2024 21:01:21 -0500 Subject: [PATCH] fix --- support/3rd_party/src/utils/path.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/support/3rd_party/src/utils/path.cpp b/support/3rd_party/src/utils/path.cpp index 94f3bc8b..3679112f 100644 --- a/support/3rd_party/src/utils/path.cpp +++ b/support/3rd_party/src/utils/path.cpp @@ -36,7 +36,7 @@ static const std::wstring directory_seperator_str_w{ } // namespace namespace repertory::utils::path { -inline auto absolute(std::string_view path) -> std::string { +auto absolute(std::string_view path) -> std::string { std::string abs_path{path}; #ifdef _WIN32 if (not abs_path.empty() && ::PathIsRelative(abs_path.c_str())) { @@ -57,7 +57,7 @@ inline auto absolute(std::string_view path) -> std::string { } else if (tmp == ".") { found = true; } else { - tmp = dirname(tmp.c_str()); + tmp = dirname(tmp.data()); } } while (not found); } @@ -66,7 +66,7 @@ inline auto absolute(std::string_view path) -> std::string { return finalize(abs_path); } -inline auto absolute(std::wstring_view path) -> std::wstring { +auto absolute(std::wstring_view path) -> std::wstring { return utils::string::from_utf8(absolute(utils::string::to_utf8(path))); }