diff options
author | George Hazan <george.hazan@gmail.com> | 2013-09-26 15:19:44 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-09-26 15:19:44 +0000 |
commit | 324b246fb23cd518bdd1907985c695b8fc4f28d2 (patch) | |
tree | b41cb8a3e91484e1677f11e1a0693075cb8382f5 /protocols/JabberG/src/jabber_form.cpp | |
parent | 65cc377f4b4161dee01c43e0430ff7b236874839 (diff) |
minor code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@6241 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/src/jabber_form.cpp')
-rw-r--r-- | protocols/JabberG/src/jabber_form.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/JabberG/src/jabber_form.cpp b/protocols/JabberG/src/jabber_form.cpp index a1aa699924..4e46791804 100644 --- a/protocols/JabberG/src/jabber_form.cpp +++ b/protocols/JabberG/src/jabber_form.cpp @@ -124,7 +124,7 @@ void JabberFormSetInstruction(HWND hwndForm, const TCHAR *text) if (fixedLen != len) {
fixedText = (TCHAR *)mir_alloc(sizeof(TCHAR) * (fixedLen+1));
TCHAR *p = fixedText;
- for (int i = 0; i < len; i++) {
+ for (int i=0; i < len; i++) {
*p = text[i];
if (i && (text[i] == _T('\n')) && (text[i] != _T('\r'))) {
*p++ = _T('\r');
@@ -420,7 +420,7 @@ void JabberFormLayoutControls(HWND hwndStatic, TJabberFormLayoutInfo *layout_inf TJabberFormControlList *controls = (TJabberFormControlList *)GetWindowLongPtr(hwndStatic, GWLP_USERDATA);
if ( !controls) return;
- for (int i = 0; i < controls->getCount(); i++)
+ for (int i=0; i < controls->getCount(); i++)
{
if ((*controls)[i]->hLabel)
SetWindowPos((*controls)[i]->hLabel, 0,
@@ -578,7 +578,7 @@ void JabberFormDestroyUI(HWND hwndStatic) {
TJabberFormControlList *controls = (TJabberFormControlList *)GetWindowLongPtr(hwndStatic, GWLP_USERDATA);
if (controls) {
- for (int i = 0; i < controls->getCount(); i++)
+ for (int i=0; i < controls->getCount(); i++)
mir_free((*controls)[i]);
controls->destroy();
delete controls;
@@ -798,7 +798,7 @@ static INT_PTR CALLBACK JabberFormDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, if (zDelta) {
int nScrollLines=0;
SystemParametersInfo(SPI_GETWHEELSCROLLLINES, 0, (void*)&nScrollLines, 0);
- for (int i = 0; i < (nScrollLines + 1) / 2; i++)
+ for (int i=0; i < (nScrollLines + 1) / 2; i++)
SendMessage(hwndDlg, WM_VSCROLL, (zDelta < 0) ? SB_LINEDOWN : SB_LINEUP, 0);
}
}
|