summaryrefslogtreecommitdiff
path: root/plugins/StatusPlugins
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-06-02 20:55:18 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-06-02 20:55:18 +0000
commit78c0815c4118fe24ab78cce2dc48a6232dcd824a (patch)
tree8512c50df70b8dd80c919e88ade3419207c95956 /plugins/StatusPlugins
parentce816d83a8c75808e0eb06832592bffefe4a8dc4 (diff)
- code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@270 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/StatusPlugins')
-rw-r--r--plugins/StatusPlugins/AdvancedAutoAway/advancedautoaway.cpp4
-rw-r--r--plugins/StatusPlugins/AdvancedAutoAway/msgoptions.cpp4
-rw-r--r--plugins/StatusPlugins/KeepStatus/action_keepstatus.cpp4
-rw-r--r--plugins/StatusPlugins/KeepStatus/keepstatus.cpp4
-rw-r--r--plugins/StatusPlugins/commonstatus.cpp2
-rw-r--r--plugins/StatusPlugins/confirmdialog.cpp4
6 files changed, 11 insertions, 11 deletions
diff --git a/plugins/StatusPlugins/AdvancedAutoAway/advancedautoaway.cpp b/plugins/StatusPlugins/AdvancedAutoAway/advancedautoaway.cpp
index 3806f9f99e..9213b915bb 100644
--- a/plugins/StatusPlugins/AdvancedAutoAway/advancedautoaway.cpp
+++ b/plugins/StatusPlugins/AdvancedAutoAway/advancedautoaway.cpp
@@ -275,7 +275,7 @@ static int changeState(TAAAProtoSetting& setting, STATES newState)
if (DBGetContactSettingByte(NULL, MODULENAME, StatusModeToDbSetting(setting.status, SETTING_MSGCUSTOM), FALSE)) {
DBVARIANT dbv;
- if(!DBGetContactSetting(NULL, MODULENAME, StatusModeToDbSetting(setting.status, SETTING_STATUSMSG), &dbv)) {
+ if (!DBGetContactSetting(NULL, MODULENAME, StatusModeToDbSetting(setting.status, SETTING_STATUSMSG), &dbv)) {
setting.szMsg = _strdup(dbv.pszVal);
DBFreeVariant(&dbv);
} }
@@ -622,7 +622,7 @@ int CSModuleLoaded(WPARAM wParam, LPARAM lParam)
PROTOACCOUNT** protos;
ProtoEnumAccounts(&count, &protos);
- for( int i=0; i < count; i++ )
+ for ( int i=0; i < count; i++ )
if ( IsSuitableProto( protos[i] ))
autoAwaySettings.insert( new TAAAProtoSetting( protos[i] ));
diff --git a/plugins/StatusPlugins/AdvancedAutoAway/msgoptions.cpp b/plugins/StatusPlugins/AdvancedAutoAway/msgoptions.cpp
index 9f0da411cc..3fd52ffec1 100644
--- a/plugins/StatusPlugins/AdvancedAutoAway/msgoptions.cpp
+++ b/plugins/StatusPlugins/AdvancedAutoAway/msgoptions.cpp
@@ -42,7 +42,7 @@ INT_PTR CALLBACK DlgProcAutoAwayMsgOpts(HWND hwndDlg, UINT msg, WPARAM wParam, L
CallService(MS_PROTO_ENUMPROTOCOLS,(WPARAM)&protoCount,(LPARAM)&proto);
DWORD protoModeMsgFlags = 0;
- for( i=0; i < protoCount; i++ ) {
+ for ( i=0; i < protoCount; i++ ) {
if ( (!(CallProtoService(proto[i]->szModuleName, PS_GETCAPS, (WPARAM)PFLAGNUM_1, 0) & PF1_MODEMSGSEND & ~PF1_INDIVMODEMSG)) )
continue;
@@ -50,7 +50,7 @@ INT_PTR CALLBACK DlgProcAutoAwayMsgOpts(HWND hwndDlg, UINT msg, WPARAM wParam, L
}
settings = ( AAMSGSETTING** )malloc(sizeof(AAMSGSETTING*));
count = 0;
- for( i=0; i < SIZEOF(statusModeList); i++ ) {
+ for ( i=0; i < SIZEOF(statusModeList); i++ ) {
if ( !( protoModeMsgFlags & Proto_Status2Flag( statusModeList[i] )))
continue;
diff --git a/plugins/StatusPlugins/KeepStatus/action_keepstatus.cpp b/plugins/StatusPlugins/KeepStatus/action_keepstatus.cpp
index a321ecfcc9..bf71c81543 100644
--- a/plugins/StatusPlugins/KeepStatus/action_keepstatus.cpp
+++ b/plugins/StatusPlugins/KeepStatus/action_keepstatus.cpp
@@ -44,7 +44,7 @@ static void BuildProtoList(HWND hList, BOOL bFromTrigger, char* szPrefix, DWORD
char dbSetting[128];
- for( int i=0; i < count; i++ ) {
+ for ( int i=0; i < count; i++ ) {
if ( !IsSuitableProto( protos[i] ))
continue;
@@ -140,7 +140,7 @@ static int TriggerChecking(DWORD actionID, REPORTINFO *ri)
PROTOACCOUNT** protos;
ProtoEnumAccounts( &count, &protos );
- for( int i=0; i <count; i++ ) {
+ for ( int i=0; i <count; i++ ) {
if ( !IsSuitableProto( protos[i] ))
continue;
diff --git a/plugins/StatusPlugins/KeepStatus/keepstatus.cpp b/plugins/StatusPlugins/KeepStatus/keepstatus.cpp
index 9aaaf39195..5ef0b59b09 100644
--- a/plugins/StatusPlugins/KeepStatus/keepstatus.cpp
+++ b/plugins/StatusPlugins/KeepStatus/keepstatus.cpp
@@ -771,7 +771,7 @@ static VOID CALLBACK AfterCheckTimer(HWND hwnd,UINT message,UINT_PTR idEvent,DWO
int setStatus = FALSE;
- for( int i=0; i <connectionSettings.getCount(); i++ ) {
+ for ( int i=0; i <connectionSettings.getCount(); i++ ) {
TConnectionSettings& cs = connectionSettings[i];
int realStatus = CallProtoService(cs.szName, PS_GETSTATUS, 0, 0);
int shouldBeStatus = GetStatus(cs);
@@ -802,7 +802,7 @@ static void CheckContinueslyFunction(void *arg)
// do a ping, even if reconnecting
BOOL doPing = FALSE;
- for( int i=0; i < connectionSettings.getCount(); i++ ) {
+ for ( int i=0; i < connectionSettings.getCount(); i++ ) {
TConnectionSettings& cs = connectionSettings[i];
int shouldBeStatus = GetStatus(cs);
if (shouldBeStatus == ID_STATUS_LAST)
diff --git a/plugins/StatusPlugins/commonstatus.cpp b/plugins/StatusPlugins/commonstatus.cpp
index e81e374328..f0e4a824eb 100644
--- a/plugins/StatusPlugins/commonstatus.cpp
+++ b/plugins/StatusPlugins/commonstatus.cpp
@@ -469,7 +469,7 @@ int GetProtoCount()
PROTOACCOUNT** protos;
ProtoEnumAccounts( &count, &protos );
- for( int i=0; i < count; i++ )
+ for ( int i=0; i < count; i++ )
if ( IsSuitableProto( protos[i] ))
pCount ++;
diff --git a/plugins/StatusPlugins/confirmdialog.cpp b/plugins/StatusPlugins/confirmdialog.cpp
index 724ddc2aef..a6073d2373 100644
--- a/plugins/StatusPlugins/confirmdialog.cpp
+++ b/plugins/StatusPlugins/confirmdialog.cpp
@@ -115,7 +115,7 @@ static int SetStatusList(HWND hwndDlg)
lvItem.mask = LVIF_TEXT | LVIF_PARAM;
lvItem.cchTextMax = 256;
- for( int i=0; i < confirmSettings.getCount(); i++ ) {
+ for ( int i=0; i < confirmSettings.getCount(); i++ ) {
lvItem.pszText = confirmSettings[i].tszAccName;
if (ListView_GetItemCount(hList) < confirmSettings.getCount())
ListView_InsertItem(hList,&lvItem);
@@ -377,7 +377,7 @@ static BOOL CALLBACK ConfirmDlgProc(HWND hwndDlg,UINT msg,WPARAM wParam,LPARAM l
actualStatus = currentStatus;
}
- for( i = 0; i < SIZEOF(statusModeList); i++ ) {
+ for ( i = 0; i < SIZEOF(statusModeList); i++ ) {
if ( ((flags&statusModePf2List[i]) || (statusModePf2List[i] == PF2_OFFLINE)) && (!((!(flags)&Proto_Status2Flag(statusModePf2List[i]))) || ((CallProtoService(proto->szName, PS_GETCAPS, (WPARAM)PFLAGNUM_5, 0)&Proto_Status2Flag(statusModePf2List[i])))) ) {
TCHAR* statusMode = ( TCHAR* )CallService(MS_CLIST_GETSTATUSMODEDESCRIPTION, statusModeList[i], GSMDF_TCHAR);
item = SendDlgItemMessage(hwndDlg,IDC_STATUS,CB_ADDSTRING,0,(LPARAM)statusMode);