diff options
author | George Hazan <george.hazan@gmail.com> | 2012-06-06 13:58:20 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-06-06 13:58:20 +0000 |
commit | 46a53191c1ad11a41c948594e972568e62d155b4 (patch) | |
tree | 7e57e6f7093fb0de766fe13a933d2f9231433e4d /src/modules/icolib | |
parent | 1fe5acae909ea64a1de9ac9f58cae5a3c2d3ad1f (diff) |
minor code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@332 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/icolib')
-rw-r--r-- | src/modules/icolib/extracticon.cpp | 4 | ||||
-rw-r--r-- | src/modules/icolib/skin2icons.cpp | 14 |
2 files changed, 9 insertions, 9 deletions
diff --git a/src/modules/icolib/extracticon.cpp b/src/modules/icolib/extracticon.cpp index f1ce824575..fae0a073fd 100644 --- a/src/modules/icolib/extracticon.cpp +++ b/src/modules/icolib/extracticon.cpp @@ -103,7 +103,7 @@ IMAGE_RESOURCE_DIRECTORY_ENTRY* _FindResourceBase(void* prt, int resType, int* p count = pDir->NumberOfIdEntries + pDir->NumberOfNamedEntries;
pRes = (IMAGE_RESOURCE_DIRECTORY_ENTRY*)(pDir+1);
- for(i = 0; i < count; i++)
+ for (i = 0; i < count; i++)
if (pRes[i].Name == (DWORD)resType) break;
if (i == count) return NULL;
@@ -134,7 +134,7 @@ void* _FindResource(IMAGE_DOS_HEADER* pDosHeader, void* prt, int resIndex, int r pRes = _FindResourceBase(prt, resType, &count);
if (resIndex < 0) {
- for(index = 0; index < count; index++)
+ for (index = 0; index < count; index++)
if (pRes[index].Name == (DWORD)(-resIndex))
break;
}
diff --git a/src/modules/icolib/skin2icons.cpp b/src/modules/icolib/skin2icons.cpp index 8ebc39a334..ab7975399f 100644 --- a/src/modules/icolib/skin2icons.cpp +++ b/src/modules/icolib/skin2icons.cpp @@ -1446,7 +1446,7 @@ static void SaveCollapseState( HWND hwndTree ) tvi.stateMask = (DWORD)-1;
TreeView_GetItem( hwndTree, &tvi );
- if( tvi.cChildren > 0 ) {
+ if ( tvi.cChildren > 0 ) {
treeItem = (TreeItem *)tvi.lParam;
if ( tvi.state & TVIS_EXPANDED )
DBWriteContactSettingByte(NULL, "SkinIconsUI", treeItem->paramName, TVIS_EXPANDED );
@@ -1455,11 +1455,11 @@ static void SaveCollapseState( HWND hwndTree ) }
ht = TreeView_GetChild( hwndTree, hti );
- if( ht == NULL ) {
+ if ( ht == NULL ) {
ht = TreeView_GetNextSibling( hwndTree, hti );
while( ht == NULL ) {
hti = TreeView_GetParent( hwndTree, hti );
- if( hti == NULL ) break;
+ if ( hti == NULL ) break;
ht = TreeView_GetNextSibling( hwndTree, hti );
} }
@@ -1776,7 +1776,7 @@ INT_PTR CALLBACK DlgProcIcoLibOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM break;
case IDC_PREVIEW:
- if(((LPNMHDR)lParam)->code == LVN_GETINFOTIP)
+ if (((LPNMHDR)lParam)->code == LVN_GETINFOTIP)
{
IconItem *item;
NMLVGETINFOTIP *pInfoTip = (NMLVGETINFOTIP *)lParam;
@@ -1785,11 +1785,11 @@ INT_PTR CALLBACK DlgProcIcoLibOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lvi.iItem = pInfoTip->iItem;
ListView_GetItem(pInfoTip->hdr.hwndFrom, &lvi);
- if( lvi.lParam < iconList.getCount() ) {
+ if ( lvi.lParam < iconList.getCount() ) {
item = iconList[lvi.lParam];
- if( item->temp_file )
+ if ( item->temp_file )
_tcsncpy( pInfoTip->pszText, item->temp_file, pInfoTip->cchTextMax );
- else if( item->default_file )
+ else if ( item->default_file )
mir_sntprintf( pInfoTip->pszText, pInfoTip->cchTextMax, _T("%s,%d"), item->default_file, item->default_indx );
}
}
|