From 654677962629eadffba7b879c62bbc1f2152964a Mon Sep 17 00:00:00 2001 From: Andreas Date: Fri, 8 Mar 2013 19:00:34 +0100 Subject: [PATCH] - Remove initialization of QList. - Fixed compile error. --- src/networkremote/tinysvcmdns.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/networkremote/tinysvcmdns.cpp b/src/networkremote/tinysvcmdns.cpp index 67b0849c6..83ea5ead1 100644 --- a/src/networkremote/tinysvcmdns.cpp +++ b/src/networkremote/tinysvcmdns.cpp @@ -10,8 +10,7 @@ extern "C" { #include "core/logging.h" -TinySVCMDNS::TinySVCMDNS() - : mdnsd_(NULL) { +TinySVCMDNS::TinySVCMDNS() { // Get our hostname QString host = QHostInfo::localHostName(); @@ -25,7 +24,7 @@ TinySVCMDNS::TinySVCMDNS() uint32_t ipv4 = 0; // Now check all network addresses for this device - QList network_address_entries = a.addressEntries(); + QList network_address_entries = network_interfaces.addressEntries(); foreach (QNetworkAddressEntry network_address_entry, network_address_entries) { QHostAddress host_address = network_address_entry.ip(); if (host_address.protocol() == QAbstractSocket::IPv4Protocol) {