From a58d37d39c039e755e5b902d5556fe34338130bc Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 13 Apr 2015 20:38:46 +0000 Subject: unused parameter removed git-svn-id: http://svn.miranda-ng.org/main/trunk@12796 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TabSRMM/src/msgdialog.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'plugins/TabSRMM/src/msgdialog.cpp') diff --git a/plugins/TabSRMM/src/msgdialog.cpp b/plugins/TabSRMM/src/msgdialog.cpp index 46b54a9efc..a635cbed20 100644 --- a/plugins/TabSRMM/src/msgdialog.cpp +++ b/plugins/TabSRMM/src/msgdialog.cpp @@ -2770,13 +2770,12 @@ INT_PTR CALLBACK DlgProcMessage(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lP case IDC_QUOTE: { - int iCharsPerLine = M.GetDword("quoteLineLength", 64); CHARRANGE sel; SETTEXTEX stx = { ST_SELECTION, 1200 }; MEVENT hDBEvent = 0; if (dat->hwndIEView || dat->hwndHPP) { // IEView quoting support.. - TCHAR *selected = 0, *szQuoted = 0; + TCHAR *selected = 0; IEVIEWEVENT event = { sizeof(event) }; event.hContact = dat->hContact; @@ -2793,10 +2792,8 @@ INT_PTR CALLBACK DlgProcMessage(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lP } if (selected != NULL) { - szQuoted = QuoteText(selected, iCharsPerLine, 0); + ptrT szQuoted(QuoteText(selected)); SendDlgItemMessage(hwndDlg, IDC_MESSAGE, EM_SETTEXTEX, (WPARAM)&stx, (LPARAM)szQuoted); - if (szQuoted) - mir_free(szQuoted); break; } else { @@ -2844,7 +2841,7 @@ INT_PTR CALLBACK DlgProcMessage(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lP MultiByteToWideChar(CP_ACP, 0, (char *)szText, -1, szConverted, 1 + (int)mir_strlen((char *)szText)); iAlloced = true; } - ptrT szQuoted(QuoteText(szConverted, iCharsPerLine, 0)); + ptrT szQuoted(QuoteText(szConverted)); SendDlgItemMessage(hwndDlg, IDC_MESSAGE, EM_SETTEXTEX, (WPARAM)&stx, (LPARAM)szQuoted); mir_free(szText); if (iAlloced) @@ -2854,7 +2851,7 @@ INT_PTR CALLBACK DlgProcMessage(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lP ptrA szFromStream(Message_GetFromStream(GetDlgItem(hwndDlg, IDC_LOG), SF_TEXT | SFF_SELECTION)); ptrW converted(mir_utf8decodeW(szFromStream)); Utils::FilterEventMarkers(converted); - ptrT szQuoted(QuoteText(converted, iCharsPerLine, 0)); + ptrT szQuoted(QuoteText(converted)); SendDlgItemMessage(hwndDlg, IDC_MESSAGE, EM_SETTEXTEX, (WPARAM)&stx, (LPARAM)szQuoted); } SetFocus(GetDlgItem(hwndDlg, IDC_MESSAGE)); -- cgit v1.2.3