mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-17 00:44:19 +00:00
Made a lot of ScopedPointer usage conform to the std::unique_ptr interface
This commit is contained in:
parent
2d9fc46b4e
commit
4229dc0a4f
99 changed files with 6809 additions and 498 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);
|
||||
ScopedPointer<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