Doc: Tweak documentation about a default QHostAddress

Change-Id: I78deb7156900a3a0e79890062a40752b5d2561c3
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Kai Koehne 2017-05-10 09:12:27 +02:00
parent adc7257141
commit 107343c8f4
1 changed files with 10 additions and 6 deletions

View File

@ -1,6 +1,6 @@
/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Copyright (C) 2017 The Qt Company Ltd.
** Copyright (C) 2016 Intel Corporation.
** Contact: https://www.qt.io/licensing/
**
@ -393,7 +393,7 @@ void QNetmaskAddress::setPrefixLength(QAbstractSocket::NetworkLayerProtocol prot
/*! \enum QHostAddress::SpecialAddress
\value Null The null address object. Equivalent to QHostAddress().
\value Null The null address object. Equivalent to QHostAddress(). See also QHostAddress::isNull().
\value LocalHost The IPv4 localhost address. Equivalent to QHostAddress("127.0.0.1").
\value LocalHostIPv6 The IPv6 localhost address. Equivalent to QHostAddress("::1").
\value Broadcast The IPv4 broadcast address. Equivalent to QHostAddress("255.255.255.255").
@ -629,7 +629,9 @@ QHostAddress &QHostAddress::operator=(SpecialAddress address)
*/
/*!
Sets the host address to 0.0.0.0.
Sets the host address to null.
\sa QHostAddress::Null
*/
void QHostAddress::clear()
{
@ -990,9 +992,11 @@ bool QHostAddress::operator ==(SpecialAddress other) const
}
/*!
Returns \c true if this host address is null (INADDR_ANY or in6addr_any).
The default constructor creates a null address, and that address is
not valid for any host or interface.
Returns \c true if this host address is not valid for any host or interface.
The default constructor creates a null address.
\sa QHostAddress::Null
*/
bool QHostAddress::isNull() const
{