diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2014-10-09 22:16:38 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2014-10-09 22:16:38 +0000 |
commit | 7ede7b7528dfb2b4fde85de0753ef10b0167ae8e (patch) | |
tree | 9b1e1b2f301cc4936c7325013c6b89938c113cbe /plugins/IEView | |
parent | fd58bbd2dab4d3382973e48393a4ea410d333cb1 (diff) |
IEView:
-Fixed copying smileys from message log (fixes #345)
-version bump
git-svn-id: http://svn.miranda-ng.org/main/trunk@10750 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/IEView')
-rw-r--r-- | plugins/IEView/src/TextToken.cpp | 14 | ||||
-rw-r--r-- | plugins/IEView/src/Version.h | 2 | ||||
-rw-r--r-- | plugins/IEView/src/ieview_main.cpp | 2 | ||||
-rw-r--r-- | plugins/IEView/src/ieview_services.cpp | 6 |
4 files changed, 12 insertions, 12 deletions
diff --git a/plugins/IEView/src/TextToken.cpp b/plugins/IEView/src/TextToken.cpp index a7b4fb85bf..7dc8acbc73 100644 --- a/plugins/IEView/src/TextToken.cpp +++ b/plugins/IEView/src/TextToken.cpp @@ -357,18 +357,18 @@ TextToken* TextToken::tokenizeLinks(const wchar_t *text) TextToken* TextToken::tokenizeSmileys(MCONTACT hContact, const char *proto, const wchar_t *text, bool isSent)
{
TextToken *firstToken = NULL, *lastToken = NULL;
- SMADD_BATCHPARSE2 sp;
- SMADD_BATCHPARSERES *spRes;
int l = (int)wcslen(text);
if (!Options::isSmileyAdd()) {
return new TextToken(TEXT, text, l);
}
+
+ SMADD_BATCHPARSE2 sp;
sp.cbSize = sizeof(sp);
sp.Protocolname = proto;
sp.flag = SAFL_PATH | SAFL_UNICODE | (isSent ? SAFL_OUTGOING : 0);
sp.wstr = (wchar_t *)text;
sp.hContact = hContact;
- spRes = (SMADD_BATCHPARSERES *)CallService(MS_SMILEYADD_BATCHPARSE, 0, (LPARAM)&sp);
+ SMADD_BATCHPARSERES *spRes = (SMADD_BATCHPARSERES *)CallService(MS_SMILEYADD_BATCHPARSE, 0, (LPARAM)&sp);
int last_pos = 0;
if (spRes != NULL) {
for (int i = 0; i < (int)sp.numSmileys; i++) {
@@ -637,16 +637,16 @@ void TextToken::toString(wchar_t **str, int *sizeAlloced) Utils::appendText(str, sizeAlloced,
L"<span title=\"%s\" class=\"img\"><object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" \
codebase=\"http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0\" >\
- <param NAME=\"movie\" VALUE=\"%s\"><param NAME=\"quality\" VALUE=\"high\"><PARAM NAME=\"loop\" VALUE=\"true\"></object></span><span style=\"position:absolute; visibility:hidden;\">%s</span>",
- eText, wlink, eText);
+ <param NAME=\"movie\" VALUE=\"%s\"><param NAME=\"quality\" VALUE=\"high\"><PARAM NAME=\"loop\" VALUE=\"true\"></object></span>",
+ eText, wlink);
}
else {
- Utils::appendText(str, sizeAlloced, L"<img class=\"img\" src=\"file://%s\" title=\"%s\" alt=\"%s\" /><span style=\"position:absolute; visibility:hidden;\">%s</span>", wlink, eText, eText, eText);
+ Utils::appendText(str, sizeAlloced, L"<img class=\"img\" src=\"file://%s\" title=\"%s\" alt=\"%s\" />", wlink, eText, eText);
}
break;
case MATH:
eText = htmlEncode(wtext);
- Utils::appendText(str, sizeAlloced, L"<img class=\"img\" src=\"file://%s\" alt=\"%s\" /><span style=\"position:absolute; visibility:hidden;\">%s</span>", wlink, eText, eText);
+ Utils::appendText(str, sizeAlloced, L"<img class=\"img\" src=\"file://%s\" title=\"%s\" alt=\"%s\" />", wlink, eText, eText);
break;
case BBCODE:
if (!end) {
diff --git a/plugins/IEView/src/Version.h b/plugins/IEView/src/Version.h index 0e03c69f0e..0c485e9489 100644 --- a/plugins/IEView/src/Version.h +++ b/plugins/IEView/src/Version.h @@ -1,7 +1,7 @@ #define __MAJOR_VERSION 1
#define __MINOR_VERSION 4
#define __RELEASE_NUM 0
-#define __BUILD_NUM 0
+#define __BUILD_NUM 1
#include <stdver.h>
diff --git a/plugins/IEView/src/ieview_main.cpp b/plugins/IEView/src/ieview_main.cpp index dbcceb8a93..5f0caf87a7 100644 --- a/plugins/IEView/src/ieview_main.cpp +++ b/plugins/IEView/src/ieview_main.cpp @@ -51,7 +51,7 @@ extern "C" __declspec(dllexport) PLUGININFOEX *MirandaPluginInfoEx(DWORD miranda return &pluginInfoEx;
}
-static int ModulesLoaded(WPARAM wParam, LPARAM lParam)
+static int ModulesLoaded(WPARAM, LPARAM)
{
IEView::init();
Options::init();
diff --git a/plugins/IEView/src/ieview_services.cpp b/plugins/IEView/src/ieview_services.cpp index 089894acca..fb0545bebc 100644 --- a/plugins/IEView/src/ieview_services.cpp +++ b/plugins/IEView/src/ieview_services.cpp @@ -21,7 +21,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "ieview_common.h"
-INT_PTR HandleIEWindow(WPARAM wParam, LPARAM lParam)
+INT_PTR HandleIEWindow(WPARAM, LPARAM lParam)
{
IEVIEWWINDOW *window = (IEVIEWWINDOW *) lParam;
IEView::init();
@@ -72,7 +72,7 @@ INT_PTR HandleIEWindow(WPARAM wParam, LPARAM lParam) return 0;
}
-INT_PTR HandleIEEvent(WPARAM wParam, LPARAM lParam)
+INT_PTR HandleIEEvent(WPARAM, LPARAM lParam)
{
IEVIEWEVENT *event = (IEVIEWEVENT *) lParam;
IEView::init();
@@ -93,7 +93,7 @@ INT_PTR HandleIEEvent(WPARAM wParam, LPARAM lParam) return 0;
}
-INT_PTR HandleIENavigate(WPARAM wParam, LPARAM lParam)
+INT_PTR HandleIENavigate(WPARAM, LPARAM lParam)
{
IEVIEWNAVIGATE *navigate = (IEVIEWNAVIGATE *) lParam;
IEView::init();
|