diff options
| author | Odd Stranne <odd@mullvad.net> | 2018-07-25 12:09:12 +0200 |
|---|---|---|
| committer | Janito Vaqueiro Ferreira Filho <janito@mullvad.net> | 2018-09-11 12:52:20 -0300 |
| commit | 79699bad388232631f28d3e53b652decd7c59fa0 (patch) | |
| tree | 8be7929b8408d9ecc51ab88001d3c922c8778b8e /windows | |
| parent | 78a756ecd32c5258699d79fa7ceabe86ee9f36d3 (diff) | |
| download | mullvadvpn-79699bad388232631f28d3e53b652decd7c59fa0.tar.xz mullvadvpn-79699bad388232631f28d3e53b652decd7c59fa0.zip | |
Suppress generating copy ctor and friends in 'NetworkInterfaces'
Diffstat (limited to 'windows')
| -rw-r--r-- | windows/winroute/src/winroute/NetworkInterfaces.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/windows/winroute/src/winroute/NetworkInterfaces.h b/windows/winroute/src/winroute/NetworkInterfaces.h index 22ff4b79d0..bf1d53dddf 100644 --- a/windows/winroute/src/winroute/NetworkInterfaces.h +++ b/windows/winroute/src/winroute/NetworkInterfaces.h @@ -16,6 +16,9 @@ private: bool HasHighestMetric(PMIB_IPINTERFACE_ROW targetIface); public: + NetworkInterfaces(const NetworkInterfaces &) = delete; + NetworkInterfaces &operator=(const NetworkInterfaces &) = delete; + void EnsureIfaceMetricIsHighest(NET_LUID interfaceLuid); NetworkInterfaces(); bool SetTopMetricForInterfacesByAlias(const wchar_t *deviceAlias); |
