mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-04 22:52:33 -06:00
Use helper functions to construct smart pointers
This commit is contained in:
committed by
sledgehammer999
parent
30f2d11203
commit
ae9b8720af
@@ -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