mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Removed some unnecessary static_casts in the URL class
This commit is contained in:
parent
375f11d91b
commit
c429bf53ce
1 changed files with 2 additions and 2 deletions
|
|
@ -766,7 +766,7 @@ OutputStream* URL::createOutputStream() const
|
|||
bool URL::readEntireBinaryStream (MemoryBlock& destData, bool usePostCommand) const
|
||||
{
|
||||
const std::unique_ptr<InputStream> in (isLocalFile() ? getLocalFile().createInputStream()
|
||||
: static_cast<InputStream*> (createInputStream (usePostCommand)));
|
||||
: createInputStream (usePostCommand));
|
||||
|
||||
if (in != nullptr)
|
||||
{
|
||||
|
|
@ -780,7 +780,7 @@ bool URL::readEntireBinaryStream (MemoryBlock& destData, bool usePostCommand) co
|
|||
String URL::readEntireTextStream (bool usePostCommand) const
|
||||
{
|
||||
const std::unique_ptr<InputStream> in (isLocalFile() ? getLocalFile().createInputStream()
|
||||
: static_cast<InputStream*> (createInputStream (usePostCommand)));
|
||||
: createInputStream (usePostCommand));
|
||||
|
||||
if (in != nullptr)
|
||||
return in->readEntireStreamAsString();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue