Fix mingw64 build error

mingw64 defines interface, so revert back to previous naming scheme

Fixes: 87864531ab
Closes #13649
This commit is contained in:
NotTsunami 2020-10-29 18:25:19 -04:00 committed by sledgehammer999
parent 3e540b3f51
commit 88a90ed7d4
No known key found for this signature in database
GPG key ID: 6E4A2D025B7CC9A2
2 changed files with 4 additions and 4 deletions

View file

@ -2686,10 +2686,10 @@ QString Session::networkInterface() const
return m_networkInterface;
}
void Session::setNetworkInterface(const QString &interface)
void Session::setNetworkInterface(const QString &iface)
{
if (interface != networkInterface()) {
m_networkInterface = interface;
if (iface != networkInterface()) {
m_networkInterface = iface;
configureListeningInterface();
}
}

View file

@ -309,7 +309,7 @@ namespace BitTorrent
bool useRandomPort() const;
void setUseRandomPort(bool value);
QString networkInterface() const;
void setNetworkInterface(const QString &interface);
void setNetworkInterface(const QString &iface);
QString networkInterfaceName() const;
void setNetworkInterfaceName(const QString &name);
QString networkInterfaceAddress() const;