summaryrefslogtreecommitdiff
path: root/plugins/Clist_modern/modern_contact.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-07-06 22:23:39 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-07-06 22:23:39 +0000
commitb8a20c7e3e0dca06effc09868bc5cf1702be30cf (patch)
tree3fc23f24f6aaff7c0796d1fbedfd907cda9d86f4 /plugins/Clist_modern/modern_contact.cpp
parentf6943a588688a64a0154a0bc3a2a56ad8727e9fa (diff)
more correct autoformatter
git-svn-id: http://svn.miranda-ng.org/main/trunk@803 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_modern/modern_contact.cpp')
-rw-r--r--plugins/Clist_modern/modern_contact.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/Clist_modern/modern_contact.cpp b/plugins/Clist_modern/modern_contact.cpp
index 9f5a98d492..fa85d337bb 100644
--- a/plugins/Clist_modern/modern_contact.cpp
+++ b/plugins/Clist_modern/modern_contact.cpp
@@ -54,7 +54,7 @@ void cli_ChangeContactIcon(HANDLE hContact,int iIcon,int add)
static int GetStatusModeOrdering(int statusMode)
{
int i;
- for(i = 0;i < SIZEOF(statusModeOrder);i++)
+ for(i=0;i < SIZEOF(statusModeOrder);i++)
if (statusModeOrder[i].m_cache_nStatus == statusMode) return statusModeOrder[i].order;
return 1000;
}
@@ -88,7 +88,7 @@ int GetProtoIndex(char * szName)
int i;
if (!szName) return -1;
ProtoEnumAccounts( &accCount, &accs );
- for (i = 0; i < accCount; i++)
+ for (i=0; i < accCount; i++)
if (!mir_strcmpi(szName,accs[i]->szModuleName))
return accs[i]->iOrder;
return -1;
@@ -151,7 +151,7 @@ int CompareContacts2(const struct ClcContact *contact1,const struct ClcContact *
{
int rc = GetProtoIndex(szProto1)-GetProtoIndex(szProto2);
- if (rc !=0 && (szProto1 !=NULL && szProto2 !=NULL)) return rc;
+ if (rc != 0 && (szProto1 != NULL && szProto2 != NULL)) return rc;
}
else if (by == SORTBY_RATE)
return contact2->bContactRate-contact1->bContactRate;
@@ -162,7 +162,7 @@ int CompareContacts2(const struct ClcContact *contact1,const struct ClcContact *
int cliCompareContacts(const struct ClcContact *contact1,const struct ClcContact *contact2)
{
int i, r;
- for (i = 0; i < SIZEOF(g_CluiData.bSortByOrder); i++)
+ for (i=0; i < SIZEOF(g_CluiData.bSortByOrder); i++)
{
r = CompareContacts2(contact1, contact2, g_CluiData.bSortByOrder[i]);
if (r != 0)
@@ -201,7 +201,7 @@ INT_PTR ToggleGroups(WPARAM wParam,LPARAM lParam)
INT_PTR SetUseGroups(WPARAM wParam, LPARAM lParam)
{
int newVal = !(GetWindowLongPtr(pcli->hwndContactTree,GWL_STYLE)&CLS_USEGROUPS);
- if ( wParam !=-1 )
+ if ( wParam != -1 )
{
if ( !newVal == wParam ) return 0;
newVal = wParam;