Browse Source

Merge pull request #13683 from NotTsunami/mingw

Fix mingw64 build error
adaptive-webui-19844
Mike Tzou 4 years ago committed by GitHub
parent
commit
6b56768e9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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
return m_networkInterface; return m_networkInterface;
} }
void Session::setNetworkInterface(const QString &interface) void Session::setNetworkInterface(const QString &iface)
{ {
if (interface != networkInterface()) { if (iface != networkInterface()) {
m_networkInterface = interface; m_networkInterface = iface;
configureListeningInterface(); configureListeningInterface();
} }
} }

2
src/base/bittorrent/session.h

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

Loading…
Cancel
Save