Browse Source

Fix mingw64 build error

mingw64 defines interface, so revert back to previous naming scheme

Fixes: 87864531ab
Closes #13649
adaptive-webui-19844
NotTsunami 4 years ago
parent
commit
a5f8f1f0f5
  1. 6
      src/base/bittorrent/session.cpp
  2. 2
      src/base/bittorrent/session.h

6
src/base/bittorrent/session.cpp

@ -2686,10 +2686,10 @@ QString Session::networkInterface() const @@ -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();
}
}

2
src/base/bittorrent/session.h

@ -309,7 +309,7 @@ namespace BitTorrent @@ -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;

Loading…
Cancel
Save