Browse Source

Removed the default bool argument from static IPAddress::any() method

tags/2021-05-28
ed 7 years ago
parent
commit
516f053006
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      modules/juce_core/network/juce_IPAddress.cpp
  2. +1
    -1
      modules/juce_core/network/juce_IPAddress.h

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

@@ -153,7 +153,7 @@ String IPAddress::toString() const
return getFormattedAddress (addressString);
}
IPAddress IPAddress::any (bool IPv6) noexcept { return IPAddress (IPv6); }
IPAddress IPAddress::any() noexcept { return IPAddress(); }
IPAddress IPAddress::broadcast() noexcept { return IPAddress (255, 255, 255, 255); }
IPAddress IPAddress::local (bool IPv6) noexcept { return IPv6 ? IPAddress (0, 0, 0, 0, 0, 0, 0, 1)
: IPAddress (127, 0, 0, 1); }


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

@@ -70,7 +70,7 @@ public:
String toString() const;
/** Returns an IPv4 or IPv6 address meaning "any", equivalent to 0.0.0.0 (IPv4) or ::, (IPv6) */
static IPAddress any (bool IPv6 = false) noexcept;
static IPAddress any() noexcept;
/** Returns an IPv4 address meaning "broadcast" (255.255.255.255) */
static IPAddress broadcast() noexcept;


Loading…
Cancel
Save