summaryrefslogtreecommitdiff
path: root/src/modules/icolib/skin2icons.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-06-06 13:58:20 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-06-06 13:58:20 +0000
commit46a53191c1ad11a41c948594e972568e62d155b4 (patch)
tree7e57e6f7093fb0de766fe13a933d2f9231433e4d /src/modules/icolib/skin2icons.cpp
parent1fe5acae909ea64a1de9ac9f58cae5a3c2d3ad1f (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/skin2icons.cpp')
-rw-r--r--src/modules/icolib/skin2icons.cpp14
1 files changed, 7 insertions, 7 deletions
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 );
}
}