diff options
author | George Hazan <ghazan@miranda.im> | 2018-06-24 19:02:41 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-06-24 19:02:48 +0300 |
commit | 5ff792104a0749588270cb151ef7cd2c6cbe353a (patch) | |
tree | 9caee6ff5a3582358d2f8fad87383a9b3b642799 /plugins/ProxySwitch/src | |
parent | c22c53642461210c3bc7a72c7310ba3fa05a921e (diff) |
minor code cleaning
Diffstat (limited to 'plugins/ProxySwitch/src')
-rw-r--r-- | plugins/ProxySwitch/src/ip.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/ProxySwitch/src/ip.cpp b/plugins/ProxySwitch/src/ip.cpp index 9040d1986a..87c5962433 100644 --- a/plugins/ProxySwitch/src/ip.cpp +++ b/plugins/ProxySwitch/src/ip.cpp @@ -289,7 +289,7 @@ int Create_NIF_List(NETWORK_INTERFACE_LIST *list) for (auto &it : g_arConnections) { NETWORK_INTERFACE* nif = Find_NIF_IP(*list, it->IP); if (nif) - nif->Bound = 1; + nif->Bound = true; } return 0; @@ -325,7 +325,7 @@ int IncUpdate_NIF_List(NETWORK_INTERFACE_LIST *trg, NETWORK_INTERFACE_LIST &src) NETWORK_INTERFACE *nif = Find_NIF_AdapterName(*trg, it->AdapterName); if (nif) { if (nif->Disabled) - nif->Disabled = 0; + nif->Disabled = false; if (mir_strcmp(NVL(nif->IPstr), NVL(it->IPstr))) { if (nif->IPstr) mir_free(nif->IPstr); @@ -384,7 +384,7 @@ int IncUpdate_NIF_List(NETWORK_INTERFACE_LIST *trg, NETWORK_INTERFACE_LIST &src) } } - for (auto *it : *trg) { + for (auto &it : *trg) { if (it->Disabled) continue; @@ -404,8 +404,8 @@ int IncUpdate_NIF_List(NETWORK_INTERFACE_LIST *trg, NETWORK_INTERFACE_LIST &src) it->IPstr = NULL; it->IPcount = 0; it->IP = NULL; - it->Bound = FALSE; - it->Disabled = 1; + it->Bound = false; + it->Disabled = true; } } return change; |