From c429bf53ce82533cfedefaf9c6cc4d1cfd226222 Mon Sep 17 00:00:00 2001 From: ed Date: Thu, 27 Jun 2019 09:03:50 +0100 Subject: [PATCH] Removed some unnecessary static_casts in the URL class --- modules/juce_core/network/juce_URL.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/juce_core/network/juce_URL.cpp b/modules/juce_core/network/juce_URL.cpp index 73fa4f8371..a72fe6578c 100644 --- a/modules/juce_core/network/juce_URL.cpp +++ b/modules/juce_core/network/juce_URL.cpp @@ -766,7 +766,7 @@ OutputStream* URL::createOutputStream() const bool URL::readEntireBinaryStream (MemoryBlock& destData, bool usePostCommand) const { const std::unique_ptr in (isLocalFile() ? getLocalFile().createInputStream() - : static_cast (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 in (isLocalFile() ? getLocalFile().createInputStream() - : static_cast (createInputStream (usePostCommand))); + : createInputStream (usePostCommand)); if (in != nullptr) return in->readEntireStreamAsString();