From 6d6b16c8591d375a4a4a2db1ebfb307116df3fd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Sch=C3=BCmann?= Date: Sat, 27 Dec 2014 05:56:38 +0000 Subject: SendSS: - cleaned up our mir_string stuff and removed lots of custom implementations as we use those of NG core now (couldn't get rid of mir_string though.. we still use some custom stuff) git-svn-id: http://svn.miranda-ng.org/main/trunk@11650 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/SendScreenshotPlus/src/mir_string.cpp | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) (limited to 'plugins/SendScreenshotPlus/src/mir_string.cpp') diff --git a/plugins/SendScreenshotPlus/src/mir_string.cpp b/plugins/SendScreenshotPlus/src/mir_string.cpp index e2e6c87f38..a66f234f12 100644 --- a/plugins/SendScreenshotPlus/src/mir_string.cpp +++ b/plugins/SendScreenshotPlus/src/mir_string.cpp @@ -27,24 +27,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "global.h" -wchar_t* mir_wcsncpy(wchar_t* pszDest, const wchar_t* pszSrc, const size_t cchDest) -{ - if (!pszDest || !pszSrc || !cchDest) - return NULL; - pszDest = wcsncpy(pszDest, pszSrc, cchDest-1); - pszDest[cchDest-1] = 0; - return pszDest; -} - -wchar_t* mir_wcsncat(wchar_t* pszDest, const wchar_t* pszSrc, const size_t cchDest) -{ - if (!pszDest || !pszSrc || !cchDest) - return NULL; - pszDest = wcsncat(pszDest, pszSrc, cchDest-1); - pszDest[cchDest-1] = 0; - return pszDest; -} - //--------------------------------------------------------------------------- void mir_stradd(char* &pszDest, const char* pszSrc) { @@ -64,7 +46,7 @@ void mir_stradd(char* &pszDest, const char* pszSrc) } } -void mir_wcsadd(wchar_t* &pszDest, const wchar_t* pszSrc) +void mir_wstradd(wchar_t* &pszDest, const wchar_t* pszSrc) { if(!pszSrc) return; -- cgit v1.2.3