From 7ede7b7528dfb2b4fde85de0753ef10b0167ae8e Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Thu, 9 Oct 2014 22:16:38 +0000 Subject: 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 --- plugins/IEView/src/TextToken.cpp | 14 +++++++------- plugins/IEView/src/Version.h | 2 +- plugins/IEView/src/ieview_main.cpp | 2 +- plugins/IEView/src/ieview_services.cpp | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) (limited to 'plugins') 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"\ - %s", - eText, wlink, eText); + ", + eText, wlink); } else { - Utils::appendText(str, sizeAlloced, L"\"%s\"%s", wlink, eText, eText, eText); + Utils::appendText(str, sizeAlloced, L"\"%s\"", wlink, eText, eText); } break; case MATH: eText = htmlEncode(wtext); - Utils::appendText(str, sizeAlloced, L"\"%s\"%s", wlink, eText, eText); + Utils::appendText(str, sizeAlloced, L"\"%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 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(); -- cgit v1.2.3