mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-14 00:14:18 +00:00
Replaced all usage of ScopedPointer with std::unique_ptr
This commit is contained in:
parent
e6104e3fed
commit
ab863a6dc2
401 changed files with 1091 additions and 1113 deletions
|
|
@ -88,9 +88,9 @@ Result DownloadCompileEngineThread::download (MemoryBlock& dest)
|
|||
StringPairArray responseHeaders;
|
||||
|
||||
URL url = getDownloadUrl();
|
||||
ScopedPointer<InputStream> in (url.createInputStream (false, nullptr, nullptr,
|
||||
String(), timeoutMs, &responseHeaders,
|
||||
&statusCode, 0));
|
||||
std::unique_ptr<InputStream> in (url.createInputStream (false, nullptr, nullptr,
|
||||
String(), timeoutMs, &responseHeaders,
|
||||
&statusCode, 0));
|
||||
|
||||
if (in == nullptr || statusCode != 200)
|
||||
return Result::fail ("Download error: cannot establish connection");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue