diff --git a/helpers/common_helpers.cpp b/helpers/common_helpers.cpp index 57c0d358..486e419a 100644 --- a/helpers/common_helpers.cpp +++ b/helpers/common_helpers.cpp @@ -294,14 +294,14 @@ bool common_helpers::dir_exist(const std::filesystem::path &dirpath) return false; } -bool common_helpers::dir_exist(const std::string_view &dirpath) +bool common_helpers::dir_exist(const std::string &dirpath) { if (dirpath.empty()) return false; std::filesystem::path path(dirpath); return dir_exist(path); } -bool common_helpers::dir_exist(const std::wstring_view &dirpath) +bool common_helpers::dir_exist(const std::wstring &dirpath) { if (dirpath.empty()) return false; std::filesystem::path path(dirpath); diff --git a/helpers/common_helpers/common_helpers.hpp b/helpers/common_helpers/common_helpers.hpp index ab27c9b4..4be70a66 100644 --- a/helpers/common_helpers/common_helpers.hpp +++ b/helpers/common_helpers/common_helpers.hpp @@ -55,7 +55,7 @@ bool file_size(const std::string &filepath, size_t &size); bool file_size(const std::wstring &filepath, size_t &size); bool dir_exist(const std::filesystem::path &dirpath); -bool dir_exist(const std::string_view &dirpath); -bool dir_exist(const std::wstring_view &dirpath); +bool dir_exist(const std::string &dirpath); +bool dir_exist(const std::wstring &dirpath); }