diff options
Diffstat (limited to 'plugins/YahooGroups/src/services.cpp')
-rw-r--r-- | plugins/YahooGroups/src/services.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/plugins/YahooGroups/src/services.cpp b/plugins/YahooGroups/src/services.cpp index 5334e7f4a2..e5c1175db4 100644 --- a/plugins/YahooGroups/src/services.cpp +++ b/plugins/YahooGroups/src/services.cpp @@ -161,12 +161,8 @@ void CreateGroup(char *group) void ProcessContacts(void (*callback)(HANDLE, char *), char *protocol)
{
- HANDLE hContact = db_find_first();
- while (hContact)
- {
+ for (HANDLE hContact = db_find_first(); hContact; hContact = db_find_next(hContact))
callback(hContact, protocol);
- hContact = db_find_next(hContact);
- }
}
void YahooMoveCallback(HANDLE hContact, char *unused)
|