[Libreoffice-commits] .: dtrans/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Sun Nov 11 00:10:27 PST 2012


 dtrans/source/win32/dtobj/FmtFilter.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit c4344e484b94805b32cce2e3cbc96a18d501f404
Author: Arnaud Versini <arnaud.versini at gmail.com>
Date:   Sun Nov 4 15:08:55 2012 +0100

    Update dtrans commented code to use string.h function instead of rtl/memory
    
    Change-Id: I244e436086746420cc66b0ed7d59bfcdc6606076
    Reviewed-on: https://gerrit.libreoffice.org/1025
    Reviewed-by: Tor Lillqvist <tml at iki.fi>
    Tested-by: Tor Lillqvist <tml at iki.fi>

diff --git a/dtrans/source/win32/dtobj/FmtFilter.cxx b/dtrans/source/win32/dtobj/FmtFilter.cxx
index 516870b..66a43db 100644
--- a/dtrans/source/win32/dtobj/FmtFilter.cxx
+++ b/dtrans/source/win32/dtobj/FmtFilter.cxx
@@ -272,7 +272,7 @@ Sequence< sal_Int8 > SAL_CALL TextHtmlToHTMLFormat( Sequence< sal_Int8 >& aTextH
     // the HTML Format header
     char aHTMLFmtHdr[120];
 
-    rtl_zeroMemory( aHTMLFmtHdr, sizeof( aHTMLFmtHdr ) );
+    memset( aHTMLFmtHdr, 0, sizeof( aHTMLFmtHdr ) );
 
     // fill the buffer with dummy values to calc the
     // exact length
@@ -318,7 +318,7 @@ Sequence< sal_Int8 > SAL_CALL TextHtmlToHTMLFormat( Sequence< sal_Int8 >& aTextH
         nEndFrgmt   = nEndFrgmt   + lHTMLFmtHdr;
 
         // fill the html header
-        rtl_zeroMemory( aHTMLFmtHdr, sizeof( aHTMLFmtHdr ) );
+        memset( aHTMLFmtHdr, 0, sizeof( aHTMLFmtHdr ) );
 
         wsprintf(
             aHTMLFmtHdr,
@@ -327,7 +327,7 @@ Sequence< sal_Int8 > SAL_CALL TextHtmlToHTMLFormat( Sequence< sal_Int8 >& aTextH
 
         // we add space for a trailing \0
         aHTMLFmtSequence.realloc( lHTMLFmtHdr + aTextHtml.getLength( ) + 1 );
-        rtl_zeroMemory( aHTMLFmtSequence.getArray( ), aHTMLFmtSequence.getLength( ) );
+        memset( aHTMLFmtSequence.getArray( ), 0, aHTMLFmtSequence.getLength( ) );
 
         // copy the HTML Format header
         memcpy(


More information about the Libreoffice-commits mailing list