Use helper functions to construct smart pointers

This commit is contained in:
Chocobo1
2020-03-05 00:39:41 +08:00
parent ca01b049a6
commit 2157e500ef
7 changed files with 10 additions and 10 deletions

View File

@@ -99,7 +99,7 @@ namespace Utils
path += source;
std::unique_ptr<wchar_t[]> pathWchar(new wchar_t[path.length() + 1] {});
auto pathWchar = std::make_unique<wchar_t[]>(path.length() + 1);
path.toWCharArray(pathWchar.get());
return reinterpret_cast<T>(