diff options
author | Arnaud Versini <arnaud.versini@gmail.com> | 2012-11-11 11:45:38 +0100 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2012-11-12 10:28:10 +0000 |
commit | aa09c0b8b2899c61300c90fa3472381e4d0eaf25 (patch) | |
tree | 251e34e45e52953e369d69c4247ee3e16acb5a5d /svtools | |
parent | 29719a369dac06d5a469a356b74ed84e3e3d2e6e (diff) |
Use memcmp instead of rtl_compareMemory in svtools
Change-Id: Id051a39774446595b5082316a470c23246de8124
Reviewed-on: https://gerrit.libreoffice.org/1034
Reviewed-by: Tor Lillqvist <tml@iki.fi>
Tested-by: Tor Lillqvist <tml@iki.fi>
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/graphic/graphic.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/svtools/source/graphic/graphic.cxx b/svtools/source/graphic/graphic.cxx index f6121f2d7375..f0e5e7f603ab 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 ); } |