aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-10-16 04:34:33 -0700
committerChris Robinson <[email protected]>2023-10-16 04:34:33 -0700
commit9f6ab01087a117842b26fda74fecfd2869c0993e (patch)
treef8a1698d379a1f6ed9d3a29ca73d10dd761385e0
parentfacad2276ddded73797b376a93b56b117ad0b126 (diff)
Remove an unnecessary c_str() call
-rw-r--r--core/helpers.cpp2
1 files changed, 1 insertions, 1 deletions
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<std::string>
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;