File src/Network.cpp changed (mode: 100644) (index 8752899..39ac4bf) |
... |
... |
void Network::update() |
46 |
46 |
|
|
47 |
47 |
const Network::ifaceList &ifaces { getIfacesInfo() }; |
const Network::ifaceList &ifaces { getIfacesInfo() }; |
48 |
48 |
int i = 0; |
int i = 0; |
49 |
|
for (const std::pair<std::string, ifaceInfo> &iface : ifaces) { |
|
|
49 |
|
for (const std::pair<const std::string, ifaceInfo> &iface : ifaces) { |
50 |
50 |
const auto prevIt = last.find(iface.first); |
const auto prevIt = last.find(iface.first); |
51 |
51 |
const ifaceInfo prev { |
const ifaceInfo prev { |
52 |
52 |
(prevIt == last.cend() |
(prevIt == last.cend() |
|
... |
... |
void Network::update() |
75 |
75 |
|
|
76 |
76 |
Field::setText(result.str()); |
Field::setText(result.str()); |
77 |
77 |
|
|
78 |
|
for (const std::pair<std::string, ifaceInfo> &iface : ifaces) { |
|
|
78 |
|
for (const std::pair<const std::string, ifaceInfo> &iface : ifaces) { |
79 |
79 |
auto it = last.find(iface.first); |
auto it = last.find(iface.first); |
80 |
80 |
if (it != last.end()) { |
if (it != last.end()) { |
81 |
81 |
last.erase(it); |
last.erase(it); |