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/Scriver/src/msglog.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/Scriver/src/msglog.cpp')
-rw-r--r-- | plugins/Scriver/src/msglog.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/Scriver/src/msglog.cpp b/plugins/Scriver/src/msglog.cpp index 43a81f12b8..fc1bdea405 100644 --- a/plugins/Scriver/src/msglog.cpp +++ b/plugins/Scriver/src/msglog.cpp @@ -51,17 +51,17 @@ struct EventData COLORREF color;
union {
char *pszNick; // Nick, usage depends on type of event
- TCHAR *pszNickT;
+ wchar_t *pszNickT;
wchar_t *pszNickW; // Nick - Unicode
};
union {
char *pszText; // Text, usage depends on type of event
- TCHAR *pszTextT;
+ wchar_t *pszTextT;
wchar_t *pszTextW; // Text - Unicode
};
union {
char *pszText2; // Text, usage depends on type of event
- TCHAR *pszText2T;
+ wchar_t *pszText2T;
wchar_t *pszText2W; // Text - Unicode
};
DWORD time;
@@ -346,11 +346,11 @@ static char* SetToStyle(int style) }
// mode: 0 - date & time, 1 - date, 2 - time
-TCHAR* TimestampToString(DWORD dwFlags, time_t check, int mode)
+wchar_t* TimestampToString(DWORD dwFlags, time_t check, int mode)
{
- static TCHAR szResult[512];
- TCHAR str[80];
- TCHAR format[20];
+ static wchar_t szResult[512];
+ wchar_t str[80];
+ wchar_t format[20];
szResult[0] = '\0';
format[0] = '\0';
@@ -574,7 +574,7 @@ static char* CreateRTFFromEvent(SrmmWindowData *dat, EventData *evt, GlobalMessa if (gdat->flags & SMF_SHOWTIME && (evt->eventType != EVENTTYPE_MESSAGE ||
(gdat->flags & SMF_MARKFOLLOWUPS || isGroupBreak || !(gdat->flags & SMF_GROUPMESSAGES)))) {
- TCHAR *timestampString = NULL;
+ wchar_t *timestampString = NULL;
if (gdat->flags & SMF_GROUPMESSAGES && evt->eventType == EVENTTYPE_MESSAGE) {
if (isGroupBreak) {
if (!(gdat->flags & SMF_MARKFOLLOWUPS))
|