From 657afd86528375bcc438893ff01aecba0fc89425 Mon Sep 17 00:00:00 2001 From: ed Date: Mon, 14 May 2018 16:48:56 +0100 Subject: [PATCH] Removed a default bool constructor from IPAddress --- modules/juce_core/network/juce_IPAddress.cpp | 2 +- modules/juce_core/network/juce_IPAddress.h | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/modules/juce_core/network/juce_IPAddress.cpp b/modules/juce_core/network/juce_IPAddress.cpp index 29fea7043b..a300a3a7f4 100644 --- a/modules/juce_core/network/juce_IPAddress.cpp +++ b/modules/juce_core/network/juce_IPAddress.cpp @@ -23,7 +23,7 @@ namespace juce { -IPAddress::IPAddress (bool IPv6) noexcept : isIPv6 (IPv6) +IPAddress::IPAddress() noexcept { for (int i = 0; i < 16; ++i) address[i] = 0; diff --git a/modules/juce_core/network/juce_IPAddress.h b/modules/juce_core/network/juce_IPAddress.h index bd6f543833..dd563829e6 100644 --- a/modules/juce_core/network/juce_IPAddress.h +++ b/modules/juce_core/network/juce_IPAddress.h @@ -37,10 +37,8 @@ public: static void findAllAddresses (Array& results, bool includeIPv6 = false); //============================================================================== - /** Creates a null address - 0.0.0.0 (IPv4) or ::, (IPv6) - @param IPv6 if true indicates that this is an IPv6 address - */ - IPAddress (bool IPv6 = false) noexcept; + /** Creates a null address - 0.0.0.0 (IPv4) or ::, (IPv6) */ + IPAddress() noexcept; /** Creates an IPv4 or IPv6 address by reading 4 or 16 bytes from an array. @param bytes The array containing the bytes to read. @@ -93,7 +91,7 @@ public: /** The elements of the IP address. */ uint8 address[16]; - bool isIPv6; + bool isIPv6 = false; private: /** Union used to split a 16-bit unsigned integer into 2 8-bit unsigned integers or vice-versa */