diff options
Diffstat (limited to 'plugins/Ping/src/pinglist.cpp')
-rw-r--r-- | plugins/Ping/src/pinglist.cpp | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/plugins/Ping/src/pinglist.cpp b/plugins/Ping/src/pinglist.cpp index bf6c9c59df..d10a51174a 100644 --- a/plugins/Ping/src/pinglist.cpp +++ b/plugins/Ping/src/pinglist.cpp @@ -13,19 +13,16 @@ BOOL changing_clist_handle() return clist_handle_changing;
}
-
void set_changing_clist_handle(BOOL flag)
{
clist_handle_changing = flag;
}
-
const bool PINGADDRESS::operator==(const PINGADDRESS &b) const
{
return index == b.index;
}
-
const bool PINGADDRESS::operator<(const PINGADDRESS &b) const
{
return index < b.index;
@@ -51,7 +48,6 @@ INT_PTR GetListSize(WPARAM, LPARAM) return ret;
}
-
void write_ping_address(PINGADDRESS &i)
{
char buff[16];
@@ -85,8 +81,7 @@ void write_ping_address(PINGADDRESS &i) void write_ping_addresses()
{
int index = 0;
- for (pinglist_it i = list_items.begin(); i != list_items.end(); ++i, index++)
- {
+ for (pinglist_it i = list_items.begin(); i != list_items.end(); ++i, index++) {
i->index = index;
write_ping_address(*i);
}
@@ -105,7 +100,8 @@ void write_ping_addresses() } while (found);
}
-bool read_ping_address(PINGADDRESS &pa) {
+bool read_ping_address(PINGADDRESS &pa)
+{
int index = pa.index;
char buff[16];
@@ -175,14 +171,12 @@ void read_ping_addresses() pa.index = 0;
list_items.clear();
- while (read_ping_address(pa))
- {
+ while (read_ping_address(pa)) {
list_items.push_back(pa);
++pa.index;
}
}
-
INT_PTR LoadPingList(WPARAM, LPARAM)
{
mir_cslock lck(list_cs);
@@ -239,4 +233,3 @@ INT_PTR ClearPingList(WPARAM, LPARAM) NotifyEventHooks(reload_event_handle, 0, 0);
return 0;
}
-
|