diff options
author | George Hazan <george.hazan@gmail.com> | 2013-06-23 12:32:34 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-06-23 12:32:34 +0000 |
commit | f0ff6972eb5fecda4218fcea6686194f1b52e704 (patch) | |
tree | b60680c9ca6f7c5fd8b57a7760c625e0371e05f5 /plugins/IEView | |
parent | 8788bb35e10ef5403a08388d33ed4ab2ff7d67df (diff) |
various warning fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@5095 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/IEView')
-rw-r--r-- | plugins/IEView/src/ChatHTMLBuilder.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/IEView/src/ChatHTMLBuilder.cpp b/plugins/IEView/src/ChatHTMLBuilder.cpp index eb6ff7eaeb..f449cc0c4c 100644 --- a/plugins/IEView/src/ChatHTMLBuilder.cpp +++ b/plugins/IEView/src/ChatHTMLBuilder.cpp @@ -165,7 +165,7 @@ void ChatHTMLBuilder::appendEventNonTemplate(IEView *view, IEVIEWEVENT *event) //DWORD dwFlags = eventData->dwFlags;
const char *iconFile = "";
DWORD dwData = eventData->dwData;
- int isSent = eventData->bIsMe;
+ bool isSent = eventData->bIsMe != 0;
int outputSize = 0;
char *output = NULL;
const char *className = "";
@@ -184,7 +184,7 @@ void ChatHTMLBuilder::appendEventNonTemplate(IEView *view, IEVIEWEVENT *event) if (eventData->iType == IEED_GC_EVENT_MESSAGE) {
iconFile = isSent ? "message_out_chat.gif" : "message_in_chat.gif";
- showIcon = iconFlags & (isSent ? GC_EVENT_MESSAGE : GC_EVENT_MESSAGE);
+ showIcon = (iconFlags & (isSent ? GC_EVENT_MESSAGE : GC_EVENT_MESSAGE)) != 0;
className = isSent ? "messageOut" : "messageIn";
}
else {
|