summaryrefslogtreecommitdiff
path: root/plugins/WebView/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-09-01 15:17:39 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-09-01 15:17:39 +0000
commit1b9f36054bddeef87d4f9c139877d28c4e6b1702 (patch)
treed462cc03209954cf5d3c1172300c7645c0d19c3c /plugins/WebView/src
parent039db3b302a3f7a3e78f89e430c8cb83efb12b5e (diff)
- 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
Diffstat (limited to 'plugins/WebView/src')
-rw-r--r--plugins/WebView/src/webview_opts.cpp11
1 files changed, 1 insertions, 10 deletions
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);