diff options
Diffstat (limited to 'plugins/Rate/src/main.cpp')
-rw-r--r-- | plugins/Rate/src/main.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/plugins/Rate/src/main.cpp b/plugins/Rate/src/main.cpp index f3d0c8c21d..4088de559d 100644 --- a/plugins/Rate/src/main.cpp +++ b/plugins/Rate/src/main.cpp @@ -106,11 +106,8 @@ int onModulesLoaded(WPARAM wParam,LPARAM lParam) hExtraIcon = ExtraIcon_Register("contact_rate", LPGEN("Contact rate"), "rate_high");
// Set initial value for all contacts
- HANDLE hContact = db_find_first();
- while (hContact != NULL) {
+ for (HANDLE hContact = db_find_first(); hContact; hContact = db_find_next(hContact))
setExtraIcon(hContact, -1, FALSE);
- hContact = db_find_next(hContact);
- }
return 0;
}
|