summaryrefslogtreecommitdiffstats
path: root/src/network
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@qt.io>2017-05-10 09:12:27 +0200
committerKai Koehne <kai.koehne@qt.io>2017-06-12 14:53:06 +0000
commit107343c8f4598bdbbf03a76899abf7190d9e3d19 (patch)
treec3ba4c0785eed383d32acc013c7819e7e21ed55b /src/network
parentadc725714109d6d3c3473e6aabeadbcf7e334108 (diff)
Doc: Tweak documentation about a default QHostAddress
Change-Id: I78deb7156900a3a0e79890062a40752b5d2561c3 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/network')
-rw-r--r--src/network/kernel/qhostaddress.cpp16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/network/kernel/qhostaddress.cpp b/src/network/kernel/qhostaddress.cpp
index 2911b123b0..1b7061d050 100644
--- a/src/network/kernel/qhostaddress.cpp
+++ b/src/network/kernel/qhostaddress.cpp
@@ -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
{