From 1b9f36054bddeef87d4f9c139877d28c4e6b1702 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 1 Sep 2015 15:17:39 +0000 Subject: - strdel()/strdelw() moved to the core; - custom implementations removed git-svn-id: http://svn.miranda-ng.org/main/trunk@15135 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/WebView/src/webview_opts.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'plugins/WebView/src') diff --git a/plugins/WebView/src/webview_opts.cpp b/plugins/WebView/src/webview_opts.cpp index 1adf9ccb7c..b0a8f1bee3 100644 --- a/plugins/WebView/src/webview_opts.cpp +++ b/plugins/WebView/src/webview_opts.cpp @@ -37,15 +37,6 @@ static TCHAR *EventTypes[] = { LPGENT("A string is present"), LPGENT("The web pa #define M_FILLSCRIPTCOMBO (WM_USER+16) -void strdel(TCHAR *parBuffer, int len) -{ - TCHAR* p; - for (p = parBuffer + len; *p != 0; p++) - p[-len] = *p; - - p[-len] = '\0'; -} - TCHAR* FixButtonText(TCHAR *url, size_t len) { TCHAR buttontext[256], stringbefore[256], newbuttontext[256]; @@ -62,7 +53,7 @@ TCHAR* FixButtonText(TCHAR *url, size_t len) int pos = (stringafter - buttontext); int posbefore = (stringafter - buttontext) - 1; int posafter = (stringafter - buttontext) + 1; - strdel(stringafter, 1); + strdelt(stringafter, 1); _tcsncpy_s(stringbefore, pos, buttontext, _TRUNCATE); mir_sntprintf(newbuttontext, _T("%s!!%s"), stringbefore, stringafter); -- cgit v1.2.3