diff options
author | George Hazan <george.hazan@gmail.com> | 2016-07-26 09:20:25 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2016-07-26 09:20:25 +0000 |
commit | 6e53dfca72b932c4bdcd7aa02ca62bf8b2630eac (patch) | |
tree | 2e8bb660c908b54914abd562af8aafa4a486c846 /plugins/HistoryStats/src/message.cpp | |
parent | a61c8728b379057fe7f0a0d86fe0b037598229dd (diff) |
less TCHARs:
- TCHAR is replaced with wchar_t everywhere;
- LPGENT replaced with either LPGENW or LPGEN;
- fixes for ANSI plugins that improperly used _t functions;
- TCHAR *t removed from MAllStrings;
- ptszGroup, ptszTitle & ptszTab in OPTIONSDIALOGPAGE replaced with pwsz*
git-svn-id: http://svn.miranda-ng.org/main/trunk@17133 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/HistoryStats/src/message.cpp')
-rw-r--r-- | plugins/HistoryStats/src/message.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/plugins/HistoryStats/src/message.cpp b/plugins/HistoryStats/src/message.cpp index 66a928bc8a..a42974a8fe 100644 --- a/plugins/HistoryStats/src/message.cpp +++ b/plugins/HistoryStats/src/message.cpp @@ -22,7 +22,7 @@ void Message::makeRawAvailable() break;
}
- m_Raw.assign(reinterpret_cast<const TCHAR*>(m_RawSource), m_nLength);
+ m_Raw.assign(reinterpret_cast<const wchar_t*>(m_RawSource), m_nLength);
m_Available |= Raw;
}
while (false);
@@ -42,14 +42,14 @@ void Message::stripRawRTF() void Message::stripBBCodes()
{
- static const TCHAR* szSimpleBBCodes[][2] = {
+ static const wchar_t* szSimpleBBCodes[][2] = {
{ L"[b]", L"[/b]" },
{ L"[u]", L"[/u]" },
{ L"[i]", L"[/i]" },
{ L"[s]", L"[/s]" },
};
- static const TCHAR* szParamBBCodes[][2] = {
+ static const wchar_t* szParamBBCodes[][2] = {
{ L"[url=", L"[/url]" },
{ L"[color=", L"[/color]" },
};
@@ -60,8 +60,8 @@ void Message::stripBBCodes() // remove simple BBcodes
array_each_(i, szSimpleBBCodes)
{
- const TCHAR* szOpenTag = szSimpleBBCodes[i][0];
- const TCHAR* szCloseTag = szSimpleBBCodes[i][1];
+ const wchar_t* szOpenTag = szSimpleBBCodes[i][0];
+ const wchar_t* szCloseTag = szSimpleBBCodes[i][1];
int lenOpen = ext::strfunc::len(szOpenTag);
int lenClose = ext::strfunc::len(szCloseTag);
@@ -88,8 +88,8 @@ void Message::stripBBCodes() // remove BBcodes with parameters
array_each_(i, szParamBBCodes)
{
- const TCHAR* szOpenTag = szParamBBCodes[i][0];
- const TCHAR* szCloseTag = szParamBBCodes[i][1];
+ const wchar_t* szOpenTag = szParamBBCodes[i][0];
+ const wchar_t* szCloseTag = szParamBBCodes[i][1];
int lenOpen = ext::strfunc::len(szOpenTag);
int lenClose = ext::strfunc::len(szCloseTag);
@@ -120,11 +120,11 @@ void Message::stripBBCodes() void Message::filterLinks()
{
- static const TCHAR* szSpaces = L" \r\r\n";
- static const TCHAR* szPrefixes = L"([{<:\"'";
- static const TCHAR* szSuffixes = L".,:;!?)]}>\"'";
- static const TCHAR* szValidProtocol = L"abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
- static const TCHAR* szValidHost = L".-abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
+ static const wchar_t* szSpaces = L" \r\r\n";
+ static const wchar_t* szPrefixes = L"([{<:\"'";
+ static const wchar_t* szSuffixes = L".,:;!?)]}>\"'";
+ static const wchar_t* szValidProtocol = L"abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
+ static const wchar_t* szValidHost = L".-abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
// init with raw text
m_WithoutLinks = getRaw();
|