[Libreoffice-commits] .: svtools/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Mon Nov 12 02:28:32 PST 2012


 svtools/source/graphic/graphic.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit aa09c0b8b2899c61300c90fa3472381e4d0eaf25
Author: Arnaud Versini <arnaud.versini at gmail.com>
Date:   Sun Nov 11 11:45:38 2012 +0100

    Use memcmp instead of rtl_compareMemory in svtools
    
    Change-Id: Id051a39774446595b5082316a470c23246de8124
    Reviewed-on: https://gerrit.libreoffice.org/1034
    Reviewed-by: Tor Lillqvist <tml at iki.fi>
    Tested-by: Tor Lillqvist <tml at iki.fi>

diff --git a/svtools/source/graphic/graphic.cxx b/svtools/source/graphic/graphic.cxx
index f6121f2..f0e5e7f 100644
--- a/svtools/source/graphic/graphic.cxx
+++ b/svtools/source/graphic/graphic.cxx
@@ -24,6 +24,7 @@
 #include <vcl/graph.hxx>
 #include "graphic.hxx"
 #include <comphelper/servicehelper.hxx>
+#include <string.h>
 
 using namespace com::sun::star;
 
@@ -277,7 +278,7 @@ const ::Graphic* Graphic::getImplementation( const uno::Reference< uno::XInterfa
 sal_Int64 SAL_CALL Graphic::getSomething( const uno::Sequence< sal_Int8 >& rId )
     throw( uno::RuntimeException )
 {
-    return( ( rId.getLength() == 16 && 0 == rtl_compareMemory( getImplementationId().getConstArray(), rId.getConstArray(), 16 ) ) ?
+    return( ( rId.getLength() == 16 && 0 == memcmp( getImplementationId().getConstArray(), rId.getConstArray(), 16 ) ) ?
             reinterpret_cast< sal_Int64 >( mpGraphic ) :
             0 );
 }


More information about the Libreoffice-commits mailing list