summaryrefslogtreecommitdiff
path: root/protocols/MSN/src/msn_srv.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/MSN/src/msn_srv.cpp')
-rw-r--r--protocols/MSN/src/msn_srv.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/protocols/MSN/src/msn_srv.cpp b/protocols/MSN/src/msn_srv.cpp
index a3e5181f73..cc9ff30f2b 100644
--- a/protocols/MSN/src/msn_srv.cpp
+++ b/protocols/MSN/src/msn_srv.cpp
@@ -177,19 +177,22 @@ void CMsnProto::MSN_RemoveEmptyGroups(void)
int count = -1;
for (;;) {
MsnContact *msc = Lists_GetNext(count);
- if (msc == nullptr) break;
+ if (msc == nullptr)
+ break;
char szGroupID[100];
if (!db_get_static(msc->hContact, m_szModuleName, "GroupID", szGroupID, sizeof(szGroupID))) {
const char *pId = szGroupID;
int i = m_arGroups.getIndex((ServerGroupItem*)&pId);
- if (i > -1) ++cCount[i];
+ if (i > -1)
+ ++cCount[i];
}
}
- for (int i = m_arGroups.getCount(); i--;) {
- if (cCount[i] == 0) MSN_DeleteServerGroup(m_arGroups[i]->id);
- }
+ for (int i = m_arGroups.getCount(); i--;)
+ if (cCount[i] == 0)
+ MSN_DeleteServerGroup(m_arGroups[i]->id);
+
mir_free(cCount);
}