diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2013-03-16 11:50:58 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2013-03-16 11:50:58 +0000 |
commit | a1a305735072f66fc48de018d187ded085ecf89b (patch) | |
tree | 269b620466453a480d732bdff4eda68fdf84eab1 /plugins/IEView/src/TabSRMMHTMLBuilder.cpp | |
parent | 2a1cd0326fa6a54d7cfee9187fbe4f7849c55620 (diff) |
own UTF8Encode removed. now use core encoding.
git-svn-id: http://svn.miranda-ng.org/main/trunk@4064 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/IEView/src/TabSRMMHTMLBuilder.cpp')
-rw-r--r-- | plugins/IEView/src/TabSRMMHTMLBuilder.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/IEView/src/TabSRMMHTMLBuilder.cpp b/plugins/IEView/src/TabSRMMHTMLBuilder.cpp index 4bf26980c7..aad617fd6d 100644 --- a/plugins/IEView/src/TabSRMMHTMLBuilder.cpp +++ b/plugins/IEView/src/TabSRMMHTMLBuilder.cpp @@ -197,7 +197,9 @@ char *TabSRMMHTMLBuilder::timestampToString(DWORD dwFlags, time_t check, int isG }
CallService(MS_DB_TIME_TIMESTAMPTOSTRING, check, (LPARAM) & dbtts);
strncat(szResult, str, 500);
- Utils::UTF8Encode(szResult, szResult, 500);
+ char *tmp = mir_utf8encode(szResult);
+ lstrcpynA(szResult, tmp, 500);
+ mir_free(tmp);
return szResult;
}
@@ -419,8 +421,8 @@ void TabSRMMHTMLBuilder::appendEventNonTemplate(IEView *view, IEVIEWEVENT *event Utils::appendText(&output, &outputSize, "</div>\n");
setLastEventType(MAKELONG(eventData->dwFlags, eventData->iType));
setLastEventTime(eventData->time);
- if (szName!=NULL) delete szName;
- if (szText!=NULL) delete szText;
+ if (szName!=NULL) mir_free(szName);
+ if (szText!=NULL) mir_free(szText);
}
if (output != NULL) {
view->write(output);
|