- Remove initialization of QList.
- Fixed compile error.
This commit is contained in:
parent
5747b7acb0
commit
6546779626
@ -10,8 +10,7 @@ extern "C" {
|
|||||||
|
|
||||||
#include "core/logging.h"
|
#include "core/logging.h"
|
||||||
|
|
||||||
TinySVCMDNS::TinySVCMDNS()
|
TinySVCMDNS::TinySVCMDNS() {
|
||||||
: mdnsd_(NULL) {
|
|
||||||
// Get our hostname
|
// Get our hostname
|
||||||
QString host = QHostInfo::localHostName();
|
QString host = QHostInfo::localHostName();
|
||||||
|
|
||||||
@ -25,7 +24,7 @@ TinySVCMDNS::TinySVCMDNS()
|
|||||||
uint32_t ipv4 = 0;
|
uint32_t ipv4 = 0;
|
||||||
|
|
||||||
// Now check all network addresses for this device
|
// Now check all network addresses for this device
|
||||||
QList<QNetworkAddressEntry> network_address_entries = a.addressEntries();
|
QList<QNetworkAddressEntry> network_address_entries = network_interfaces.addressEntries();
|
||||||
foreach (QNetworkAddressEntry network_address_entry, network_address_entries) {
|
foreach (QNetworkAddressEntry network_address_entry, network_address_entries) {
|
||||||
QHostAddress host_address = network_address_entry.ip();
|
QHostAddress host_address = network_address_entry.ip();
|
||||||
if (host_address.protocol() == QAbstractSocket::IPv4Protocol) {
|
if (host_address.protocol() == QAbstractSocket::IPv4Protocol) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user