diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2013-03-17 10:05:05 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2013-03-17 10:05:05 +0000 |
commit | 702f2b6951058a0569f0210a19545c79bcb5b511 (patch) | |
tree | 3c0ccc84ea301f551b09df916b1be14415b651a6 /plugins/IEView/src/TemplateHTMLBuilder.cpp | |
parent | be2dabbdefed00b5f9e6cc112fd2d95175da0089 (diff) |
one more part of replacing own functions to core functions
git-svn-id: http://svn.miranda-ng.org/main/trunk@4068 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/IEView/src/TemplateHTMLBuilder.cpp')
-rw-r--r-- | plugins/IEView/src/TemplateHTMLBuilder.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/plugins/IEView/src/TemplateHTMLBuilder.cpp b/plugins/IEView/src/TemplateHTMLBuilder.cpp index daf79229a7..f7ffa2f1bd 100644 --- a/plugins/IEView/src/TemplateHTMLBuilder.cpp +++ b/plugins/IEView/src/TemplateHTMLBuilder.cpp @@ -102,7 +102,7 @@ const char *TemplateHTMLBuilder::getFlashAvatar(const TCHAR *file, int index) { _close(src);
urlBuf = strstr(pBuf, "<URL>");
if(urlBuf) {
- flashAvatars[index] = Utils::dupString(strtok(urlBuf + 5, "<\t\n\r"));
+ flashAvatars[index] = mir_strdup(strtok(urlBuf + 5, "<\t\n\r"));
}
}
}
@@ -198,8 +198,8 @@ void TemplateHTMLBuilder::buildHeadTemplate(IEView *view, IEVIEWEVENT *event, Pr szNameOut = getEncodedContactName(NULL, szProto, szRealProto);
szNameIn = getEncodedContactName(event->hContact, szProto, szRealProto);
} else {
- szNameOut = Utils::dupString(" ");
- szNameIn = Utils::dupString(" ");
+ szNameOut = mir_strdup(" ");
+ szNameIn = mir_strdup(" ");
}
sprintf(tempStr, "%snoavatar.png", tempBase);
szNoAvatar = mir_utf8encode(tempStr);
@@ -210,11 +210,11 @@ void TemplateHTMLBuilder::buildHeadTemplate(IEView *view, IEVIEWEVENT *event, Pr }
szAvatarIn = getAvatar(event->hContact, szRealProto);
if (szAvatarIn == NULL) {
- szAvatarIn = Utils::dupString(szNoAvatar);
+ szAvatarIn = mir_strdup(szNoAvatar);
}
szAvatarOut = getAvatar(NULL, szRealProto);
if (szAvatarOut == NULL) {
- szAvatarOut = Utils::dupString(szNoAvatar);
+ szAvatarOut = mir_strdup(szNoAvatar);
}
if (!DBGetContactSetting(event->hContact, "CList", "StatusMsg",&dbv)) {
if (strlen(dbv.pszVal) > 0) {
@@ -301,8 +301,8 @@ void TemplateHTMLBuilder::buildHeadTemplate(IEView *view, IEVIEWEVENT *event, Pr free(output);
}
if (szBase!=NULL) mir_free(szBase);
- if (szRealProto!=NULL) delete szRealProto;
- if (szProto!=NULL) delete szProto;
+ if (szRealProto!=NULL) mir_free(szRealProto);
+ if (szProto!=NULL) mir_free(szProto);
if (szUINIn!=NULL) mir_free(szUINIn);
if (szUINOut!=NULL) mir_free(szUINOut);
if (szNoAvatar!=NULL) mir_free(szNoAvatar);
@@ -374,8 +374,8 @@ void TemplateHTMLBuilder::appendEventTemplate(IEView *view, IEVIEWEVENT *event, szNameOut = getEncodedContactName(NULL, szProto, szRealProto);
szNameIn = getEncodedContactName(event->hContact, szProto, szRealProto);
} else {
- szNameOut = Utils::dupString(" ");
- szNameIn = Utils::dupString(" ");
+ szNameOut = mir_strdup(" ");
+ szNameIn = mir_strdup(" ");
}
sprintf(tempStr, "%snoavatar.png", tempBase);
szNoAvatar = mir_utf8encode(tempStr);
@@ -389,11 +389,11 @@ void TemplateHTMLBuilder::appendEventTemplate(IEView *view, IEVIEWEVENT *event, szAvatarIn = getAvatar(event->hContact, szRealProto);
}
if (szAvatarIn == NULL) {
- szAvatarIn = Utils::dupString(szNoAvatar);
+ szAvatarIn = mir_strdup(szNoAvatar);
}
szAvatarOut = getAvatar(NULL, szRealProto);
if (szAvatarOut == NULL) {
- szAvatarOut = Utils::dupString(szNoAvatar);
+ szAvatarOut = mir_strdup(szNoAvatar);
}
if(event->hContact != NULL) {
if (!DBGetContactSetting(event->hContact, "CList", "StatusMsg",&dbv)) {
@@ -626,8 +626,8 @@ void TemplateHTMLBuilder::appendEventTemplate(IEView *view, IEVIEWEVENT *event, }
}
if (szBase!=NULL) mir_free(szBase);
- if (szRealProto!=NULL) delete szRealProto;
- if (szProto!=NULL) delete szProto;
+ if (szRealProto!=NULL) mir_free(szRealProto);
+ if (szProto!=NULL) mir_free(szProto);
if (szUINIn!=NULL) mir_free(szUINIn);
if (szUINOut!=NULL) mir_free(szUINOut);
if (szNoAvatar!=NULL) mir_free(szNoAvatar);
|