summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/utils.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-02-21 12:21:36 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-02-21 12:21:36 +0000
commit8d23d76f0d43ca65a3c6a259382d26df567b2356 (patch)
tree17011297e23a7acde36b4b80cccf8478c5ce62f7 /plugins/TabSRMM/src/utils.cpp
parent370ee3e9fdee080643048aa5d13ecffc0370bfc3 (diff)
- fix for underlining processing;
- code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@12231 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/utils.cpp')
-rw-r--r--plugins/TabSRMM/src/utils.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/plugins/TabSRMM/src/utils.cpp b/plugins/TabSRMM/src/utils.cpp
index d0c06d7821..5edd2a38b9 100644
--- a/plugins/TabSRMM/src/utils.cpp
+++ b/plugins/TabSRMM/src/utils.cpp
@@ -544,21 +544,21 @@ void Utils::RTF_ColorAdd(const TCHAR *tszColname, size_t length)
rtf_ctable[rtf_ctable_size - 1].clr = (RGB(GetBValue(clr), GetGValue(clr), GetRValue(clr)));
}
-void Utils::CreateColorMap(TCHAR *Text)
+void Utils::CreateColorMap(CMString &Text)
{
- TCHAR *pszText = Text;
+ const TCHAR *pszText = Text;
int iIndex = 1, i = 0;
static const TCHAR *lpszFmt = _T("\\red%[^ \x5b\\]\\green%[^ \x5b\\]\\blue%[^ \x5b;];");
TCHAR szRed[10], szGreen[10], szBlue[10];
- TCHAR *p1 = _tcsstr(pszText, _T("\\colortbl"));
+ const TCHAR *p1 = _tcsstr(pszText, _T("\\colortbl"));
if (!p1)
return;
- TCHAR *pEnd = _tcschr(p1, '}');
+ const TCHAR *pEnd = _tcschr(p1, '}');
- TCHAR *p2 = _tcsstr(p1, _T("\\red"));
+ const TCHAR *p2 = _tcsstr(p1, _T("\\red"));
for (i=0; i < RTF_CTABLE_DEFSIZE; i++)
rtf_ctable[i].index = 0;
@@ -577,7 +577,6 @@ void Utils::CreateColorMap(TCHAR *Text)
p2 = _tcsstr(p1, _T("\\red"));
}
- return ;
}
int Utils::RTFColorToIndex(int iCol)
@@ -880,7 +879,7 @@ int Utils::mustPlaySound(const TWindowData *dat)
/////////////////////////////////////////////////////////////////////////////////////////
// enable or disable a dialog control
-void Utils::enableDlgControl(const HWND hwnd, UINT id, BOOL fEnable)
+void Utils::enableDlgControl(const HWND hwnd, UINT id, bool fEnable)
{
::EnableWindow(::GetDlgItem(hwnd, id), fEnable);
}