From 9f6ab01087a117842b26fda74fecfd2869c0993e Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 16 Oct 2023 04:34:33 -0700 Subject: Remove an unnecessary c_str() call --- core/helpers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/helpers.cpp b/core/helpers.cpp index b353da2e..5a996eee 100644 --- a/core/helpers.cpp +++ b/core/helpers.cpp @@ -90,7 +90,7 @@ void DirectorySearch(const char *path, const char *ext, std::vector pathstr += ext; TRACE("Searching %s\n", pathstr.c_str()); - std::wstring wpath{utf8_to_wstr(pathstr.c_str())}; + std::wstring wpath{utf8_to_wstr(pathstr)}; WIN32_FIND_DATAW fdata; HANDLE hdl{FindFirstFileExW(wpath.c_str(), FindExInfoStandard, &fdata, FindExSearchNameMatch, NULL, 0)}; if(hdl == INVALID_HANDLE_VALUE) return; -- cgit v1.2.3