mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-18 20:40:43 +01:00
- 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"
|
||||
|
||||
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<QNetworkAddressEntry> network_address_entries = a.addressEntries();
|
||||
QList<QNetworkAddressEntry> 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) {
|
||||
|
Loading…
Reference in New Issue
Block a user