diff options
author | George Hazan <george.hazan@gmail.com> | 2012-07-14 14:57:37 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-07-14 14:57:37 +0000 |
commit | 3d64cefb8851fcf43b9c6109abdddaf71e340a71 (patch) | |
tree | 570472c4a55ca462fe9e5049a91702859eeb0fed /plugins/TabSRMM/src/msgoptions.cpp | |
parent | 1d680ee8c0f9b0c2a421a778cb50152581dc2873 (diff) |
- various leaks
- code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@965 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/msgoptions.cpp')
-rw-r--r-- | plugins/TabSRMM/src/msgoptions.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/TabSRMM/src/msgoptions.cpp b/plugins/TabSRMM/src/msgoptions.cpp index 35f146beff..6995ad506e 100644 --- a/plugins/TabSRMM/src/msgoptions.cpp +++ b/plugins/TabSRMM/src/msgoptions.cpp @@ -204,7 +204,7 @@ static int TSAPI RescanSkins(HWND hwndCombobox) SendMessage(hwndCombobox, CB_SETCURSEL, 0, 0);
if (0 == M->GetTString(0, SRMSGMOD_T, "ContainerSkin", &dbv)) {
LRESULT lr = SendMessage(hwndCombobox, CB_GETCOUNT, 0, 0);
- for(int i = 1; i < lr; i++) {
+ for (int i = 1; i < lr; i++) {
TCHAR* idata = (TCHAR *)SendMessage(hwndCombobox, CB_GETITEMDATA, i, 0);
if (idata && idata != (TCHAR *)CB_ERR) {
@@ -227,7 +227,7 @@ static void TSAPI FreeComboData(HWND hwndCombobox) {
LRESULT lr = SendMessage(hwndCombobox, CB_GETCOUNT, 0, 0);
- for(int i = 1; i < lr; i++) {
+ for (int i = 1; i < lr; i++) {
void *idata = (void *)SendMessage(hwndCombobox, CB_GETITEMDATA, i, 0);
if (idata && idata != (void *)CB_ERR)
@@ -689,7 +689,7 @@ static INT_PTR CALLBACK DlgProcLogOptions(HWND hwndDlg, UINT msg, WPARAM wParam, LRESULT r = SendDlgItemMessage(hwndDlg, IDC_MSGLOGDIDSPLAY, CB_GETCURSEL, 0, 0);
Utils::showDlgControl(hwndDlg, IDC_EXPLAINMSGLOGSETTINGS, r == 0 ? SW_HIDE : SW_SHOW);
Utils::showDlgControl(hwndDlg, IDC_LOGOPTIONS, r == 0 ? SW_SHOW : SW_HIDE);
- for(i = 0; i < safe_sizeof(__ctrls); i++)
+ for (i = 0; i < safe_sizeof(__ctrls); i++)
Utils::enableDlgControl(hwndDlg, __ctrls[i], r == 0 ? TRUE : FALSE);
return 0;
}
@@ -1182,7 +1182,7 @@ static INT_PTR CALLBACK DlgProcContainerSettings(HWND hwndDlg, UINT msg, WPARAM SendDlgItemMessage(hwndDlg, IDC_FLASHINTERVALSPIN, UDM_SETACCEL, 0, (int)M->GetDword("flashinterval", 1000));
CheckDlgButton(hwndDlg, IDC_USEAERO, M->GetByte("useAero", 1));
CheckDlgButton(hwndDlg, IDC_USEAEROPEEK, M->GetByte("useAeroPeek", 1));
- for(int i = 0; i < CSkin::AERO_EFFECT_LAST; i++)
+ for (int i = 0; i < CSkin::AERO_EFFECT_LAST; i++)
SendDlgItemMessage(hwndDlg, IDC_AEROEFFECT, CB_INSERTSTRING, -1, (LPARAM)TranslateTS(CSkin::m_aeroEffects[i].tszName));
SendDlgItemMessage(hwndDlg, IDC_AEROEFFECT, CB_SETCURSEL, (WPARAM)CSkin::m_aeroEffect, 0);
|