summaryrefslogtreecommitdiff
path: root/plugins/IEView/src/TemplateHTMLBuilder.cpp
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2016-06-29 09:18:52 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2016-06-29 09:18:52 +0000
commit9c9afbb56c8f5ac3e302d0073222e95162513004 (patch)
tree7d1e870eacec1f49d1f8abb7eb707aa105e31407 /plugins/IEView/src/TemplateHTMLBuilder.cpp
parenta743c7d531c07c1fc2a778d7e15189f124aa6e48 (diff)
IEView: fix(?) avatar path, code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@17042 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/IEView/src/TemplateHTMLBuilder.cpp')
-rw-r--r--plugins/IEView/src/TemplateHTMLBuilder.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/IEView/src/TemplateHTMLBuilder.cpp b/plugins/IEView/src/TemplateHTMLBuilder.cpp
index 4ace2ae70b..9be18d0f3e 100644
--- a/plugins/IEView/src/TemplateHTMLBuilder.cpp
+++ b/plugins/IEView/src/TemplateHTMLBuilder.cpp
@@ -301,9 +301,9 @@ void TemplateHTMLBuilder::appendEventTemplate(IEView *view, IEVIEWEVENT *event,
char* pathrun = nullptr;
if (pathrun = strrchr(tempBase, '\\'))
- ++pathrun = '\0';
+ *(++pathrun) = '\0';
else if (pathrun = strrchr(tempBase, '/'))
- ++pathrun = '\0';
+ *(++pathrun) = '\0';
isGrouping = tmpm->isGrouping();
}
@@ -404,7 +404,7 @@ void TemplateHTMLBuilder::appendEventTemplate(IEView *view, IEVIEWEVENT *event,
else
szFileDesc = encodeUTF8(event->hContact, szRealProto, eventData->pszText2, event->codepage, 0, isSent);
- if ((eventData->iType == IEED_EVENT_MESSAGE)) {
+ if (eventData->iType == IEED_EVENT_MESSAGE) {
if (!isRTL) {
if (isGrouping && (getFlags(protoSettings) & Options::LOG_GROUP_MESSAGES)) {
if (isGroupBreak)