Use new funcs in other modules

This commit is contained in:
FutureRave 2022-02-27 16:49:12 +00:00
parent 204a752a96
commit 99e3920008
No known key found for this signature in database
GPG Key ID: E883E2BC9657D955
3 changed files with 12 additions and 12 deletions

View File

@ -10,7 +10,7 @@ namespace Utils
if (mimeType) if (mimeType)
{ {
std::wstring wMimeType(mimeType); std::wstring wMimeType(mimeType);
return std::string(wMimeType.begin(), wMimeType.end()); return String::Convert(wMimeType);
} }
return "application/octet-stream"; return "application/octet-stream";

View File

@ -408,7 +408,7 @@ namespace Utils
replace = "\\"; replace = "\\";
} }
while ((nPos = path.find(find)) != std::wstring::npos) while ((nPos = path.find(find)) != std::string::npos)
{ {
path = path.replace(nPos, find.length(), replace); path = path.replace(nPos, find.length(), replace);
} }