From 564b59d903683b14c75b72a3e93367717f201def Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Wed, 7 Oct 2020 13:05:48 +0200 Subject: Another round of replacing 0 with nullptr This time based on grepping to also include documentation, tests and examples previously missed by the automatic tool. Change-Id: Ied1703f4bcc470fbc275f759ed5b7c588a5c4e9f Reviewed-by: Qt CI Bot Reviewed-by: Friedemann Kleint --- src/network/kernel/qnetworkinterface_unix.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/network') diff --git a/src/network/kernel/qnetworkinterface_unix.cpp b/src/network/kernel/qnetworkinterface_unix.cpp index 4b8c58cb40..5b34b99caa 100644 --- a/src/network/kernel/qnetworkinterface_unix.cpp +++ b/src/network/kernel/qnetworkinterface_unix.cpp @@ -209,7 +209,7 @@ static QSet interfaceNames(int socket) static QNetworkInterfacePrivate *findInterface(int socket, QList &interfaces, struct ifreq &req) { - QNetworkInterfacePrivate *iface = 0; + QNetworkInterfacePrivate *iface = nullptr; int ifindex = 0; #if !defined(QT_NO_IPV6IFNAME) || defined(SIOCGIFINDEX) @@ -618,7 +618,7 @@ static QList interfaceListing() for (ifaddrs *ptr = interfaceListing; ptr; ptr = ptr->ifa_next) { // Find the interface QLatin1String name(ptr->ifa_name); - QNetworkInterfacePrivate *iface = 0; + QNetworkInterfacePrivate *iface = nullptr; QList::Iterator if_it = interfaces.begin(); for ( ; if_it != interfaces.end(); ++if_it) if ((*if_it)->name == name) { -- cgit v1.2.3