diff options
author | George Hazan <george.hazan@gmail.com> | 2012-09-26 08:06:35 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-09-26 08:06:35 +0000 |
commit | d3540ad7bf4de7d1bae2569db357ad91656feb76 (patch) | |
tree | cc56d3cd37825db9fdecec884457b5069d2a075c /plugins/TabSRMM/src/generic_msghandlers.cpp | |
parent | 13f917ea44a40282e9dd55777cdb0a5bd46e06f4 (diff) |
- fix for mishmash in "Add contact" button's tooltip
- code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@1661 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/generic_msghandlers.cpp')
-rw-r--r-- | plugins/TabSRMM/src/generic_msghandlers.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/TabSRMM/src/generic_msghandlers.cpp b/plugins/TabSRMM/src/generic_msghandlers.cpp index de660d51d7..32d65a8671 100644 --- a/plugins/TabSRMM/src/generic_msghandlers.cpp +++ b/plugins/TabSRMM/src/generic_msghandlers.cpp @@ -282,14 +282,14 @@ LRESULT TSAPI DM_MsgWindowCmdHandler(HWND hwndDlg, TContainerData *m_pContainer, if (iSelection == ID_FONT_DEFAULTCOLOR) {
int i = 0;
cf.crTextColor = M->GetDword(FONTMODULE, "Font16Col", 0);
- for (i = 0; i < Utils::rtf_ctable_size; i++) {
+ for (i=0; i < Utils::rtf_ctable_size; i++) {
if (Utils::rtf_ctable[i].clr == cf.crTextColor)
cf.crTextColor = RGB(GetRValue(cf.crTextColor), GetGValue(cf.crTextColor), GetBValue(cf.crTextColor) == 0 ? GetBValue(cf.crTextColor) + 1 : GetBValue(cf.crTextColor) - 1);
}
SendDlgItemMessage(hwndDlg, IDC_MESSAGE, EM_SETCHARFORMAT, SCF_SELECTION, (LPARAM)&cf);
break;
}
- for (i = 0; i < RTF_CTABLE_DEFSIZE; i++) {
+ for (i=0; i < RTF_CTABLE_DEFSIZE; i++) {
if (Utils::rtf_ctable[i].menuid == iSelection) {
cf.crTextColor = Utils::rtf_ctable[i].clr;
SendDlgItemMessage(hwndDlg, IDC_MESSAGE, EM_SETCHARFORMAT, SCF_SELECTION, (LPARAM)&cf);
@@ -828,7 +828,7 @@ void TSAPI DM_InitRichEdit(TWindowData *dat) * correct the input area text color to avoid a color from the table of usable bbcode colors
*/
if (!fIsChat) {
- for (i = 0; i < Utils::rtf_ctable_size; i++) {
+ for (i=0; i < Utils::rtf_ctable_size; i++) {
if (Utils::rtf_ctable[i].clr == inputcharcolor)
inputcharcolor = RGB(GetRValue(inputcharcolor), GetGValue(inputcharcolor), GetBValue(inputcharcolor) == 0 ? GetBValue(inputcharcolor) + 1 : GetBValue(inputcharcolor) - 1);
}
@@ -2411,7 +2411,7 @@ int SI_DeinitStatusIcons() {
int i;
DestroyHookableEvent(hHookIconPressedEvt);
- for (i = 0; i < 3; i++)
+ for (i=0; i < 3; i++)
DestroyServiceFunction(SI_hServiceIcon[i]);
SI_RemoveAllStatusIcons();
return 0;
|