Browse Source

Removed a default bool constructor from IPAddress

tags/2021-05-28
ed 7 years ago
parent
commit
657afd8652
2 changed files with 4 additions and 6 deletions
  1. +1
    -1
      modules/juce_core/network/juce_IPAddress.cpp
  2. +3
    -5
      modules/juce_core/network/juce_IPAddress.h

+ 1
- 1
modules/juce_core/network/juce_IPAddress.cpp View File

@@ -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;


+ 3
- 5
modules/juce_core/network/juce_IPAddress.h View File

@@ -37,10 +37,8 @@ public:
static void findAllAddresses (Array<IPAddress>& 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 */


Loading…
Cancel
Save