summaryrefslogtreecommitdiff
path: root/plugins/FloatingContacts
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/FloatingContacts')
-rw-r--r--plugins/FloatingContacts/src/main.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/plugins/FloatingContacts/src/main.cpp b/plugins/FloatingContacts/src/main.cpp
index 4bf2de12d2..abc8cc508e 100644
--- a/plugins/FloatingContacts/src/main.cpp
+++ b/plugins/FloatingContacts/src/main.cpp
@@ -779,11 +779,8 @@ void SaveContactsPos()
static void LoadContacts()
{
- HANDLE hContact = db_find_first() ;
- while( hContact != NULL ) {
+ for (HANDLE hContact = db_find_first(); hContact; hContact = db_find_next(hContact))
LoadContact( hContact );
- hContact = db_find_next(hContact);
- }
}
/////////////////////////////////////////////////////////////////////////////////////////