Rename "interface" to "iface:" there's a #define in windows.h
Change-Id: Ibe5b1b60c6ea47e19612fffd149cd2d07116584b Reviewed-by: Jake Petroules <jake.petroules@qt.io>
This commit is contained in:
parent
195298326f
commit
d3671555cc
@ -210,10 +210,10 @@ QNetworkInterface QNetworkSessionPrivateImpl::currentInterface() const
|
||||
if (!engine || state != QNetworkSession::Connected || !publicConfig.isValid())
|
||||
return QNetworkInterface();
|
||||
|
||||
QString interface = engine->getInterfaceFromId(activeConfig.identifier());
|
||||
if (interface.isEmpty())
|
||||
QString iface = engine->getInterfaceFromId(activeConfig.identifier());
|
||||
if (iface.isEmpty())
|
||||
return QNetworkInterface();
|
||||
return QNetworkInterface::interfaceFromName(interface);
|
||||
return QNetworkInterface::interfaceFromName(iface);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user