[Libreoffice-commits] core.git: sal/textenc

Chris Sherlock chris.sherlock79 at gmail.com
Wed Dec 27 15:38:29 UTC 2017


 sal/textenc/tcvtmb.cxx |   14 +-------------
 1 file changed, 1 insertion(+), 13 deletions(-)

New commits:
commit 363cb299ddda76504f49e3445e6609fe3a4c8111
Author: Chris Sherlock <chris.sherlock79 at gmail.com>
Date:   Fri Dec 22 19:01:25 2017 +1100

    sal: fix typo in tcvtmb.cxx and remove comment cruft
    
    Change-Id: I1617900cd2df096d46a2cba75ef2fe1373c0ab63
    Reviewed-on: https://gerrit.libreoffice.org/46948
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/sal/textenc/tcvtmb.cxx b/sal/textenc/tcvtmb.cxx
index 7446fbfec562..efdf01ea4e90 100644
--- a/sal/textenc/tcvtmb.cxx
+++ b/sal/textenc/tcvtmb.cxx
@@ -25,15 +25,11 @@
 #include "tenchelp.hxx"
 #include "unichars.hxx"
 
-/* ======================================================================= */
-
 /* DBCS to Unicode conversion routine use a lead table for the first byte, */
 /* where we determine the trail table or for single byte chars the unicode */
 /* value. We have for all lead byte a separate table, because we can */
 /* then share many tables for different charset encodings. */
 
-/* ======================================================================= */
-
 sal_Size ImplDBCSToUnicode( const void* pData, SAL_UNUSED_PARAMETER void*,
                             const char* pSrcBuf, sal_Size nSrcBytes,
                             sal_Unicode* pDestBuf, sal_Size nDestChars,
@@ -82,7 +78,7 @@ sal_Size ImplDBCSToUnicode( const void* pData, SAL_UNUSED_PARAMETER void*,
         }
         else
         {
-            /* Source buffer to small */
+            /* Source buffer too small */
             if ( pSrcBuf +1 == pEndSrcBuf )
             {
                 if ( (nFlags & RTL_TEXTTOUNICODE_FLAGS_FLUSH) == 0 )
@@ -207,8 +203,6 @@ sal_Size ImplDBCSToUnicode( const void* pData, SAL_UNUSED_PARAMETER void*,
     return (nDestChars - (pEndDestBuf-pDestBuf));
 }
 
-/* ----------------------------------------------------------------------- */
-
 sal_Size ImplUnicodeToDBCS( const void* pData, SAL_UNUSED_PARAMETER void*,
                             const sal_Unicode* pSrcBuf, sal_Size nSrcChars,
                             char* pDestBuf, sal_Size nDestBytes,
@@ -361,13 +355,9 @@ sal_Size ImplUnicodeToDBCS( const void* pData, SAL_UNUSED_PARAMETER void*,
     return (nDestBytes - (pEndDestBuf-pDestBuf));
 }
 
-/* ======================================================================= */
-
 #define JIS_EUC_LEAD_OFF                                        0x80
 #define JIS_EUC_TRAIL_OFF                                       0x80
 
-/* ----------------------------------------------------------------------- */
-
 sal_Size ImplEUCJPToUnicode( const void* pData,
                              SAL_UNUSED_PARAMETER void*,
                              const char* pSrcBuf, sal_Size nSrcBytes,
@@ -525,8 +515,6 @@ sal_Size ImplEUCJPToUnicode( const void* pData,
     return (nDestChars - (pEndDestBuf-pDestBuf));
 }
 
-/* ----------------------------------------------------------------------- */
-
 sal_Size ImplUnicodeToEUCJP( const void* pData,
                              SAL_UNUSED_PARAMETER void*,
                              const sal_Unicode* pSrcBuf, sal_Size nSrcChars,


More information about the Libreoffice-commits mailing list