diff options
Diffstat (limited to 'sal/textenc/convertgb18030.cxx')
-rw-r--r-- | sal/textenc/convertgb18030.cxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sal/textenc/convertgb18030.cxx b/sal/textenc/convertgb18030.cxx index 61daa30c5295..c2bbdc9197c9 100644 --- a/sal/textenc/convertgb18030.cxx +++ b/sal/textenc/convertgb18030.cxx @@ -69,7 +69,12 @@ void ImplResetGb18030ToUnicodeContext(void * pContext) = IMPL_GB_18030_TO_UNICODE_STATE_0; } -sal_Size ImplConvertGb18030ToUnicode(ImplTextConverterData const * pData, +void ImplDestroyGb18030ToUnicodeContext(void * pContext) +{ + delete static_cast< ImplGb18030ToUnicodeContext * >(pContext); +} + +sal_Size ImplConvertGb18030ToUnicode(void const * pData, void * pContext, char const * pSrcBuf, sal_Size nSrcBytes, @@ -284,7 +289,7 @@ sal_Size ImplConvertGb18030ToUnicode(ImplTextConverterData const * pData, return pDestBufPtr - pDestBuf; } -sal_Size ImplConvertUnicodeToGb18030(ImplTextConverterData const * pData, +sal_Size ImplConvertUnicodeToGb18030(void const * pData, void * pContext, sal_Unicode const * pSrcBuf, sal_Size nSrcChars, |