mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-23 16:58:06 -06:00
Use helper functions to construct smart pointers
This commit is contained in:
@@ -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>(
|
||||
|
||||
Reference in New Issue
Block a user