mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-16 00:34:19 +00:00
Removed a default bool constructor from IPAddress
This commit is contained in:
parent
b856e38d46
commit
657afd8652
2 changed files with 4 additions and 6 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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…
Add table
Add a link
Reference in a new issue