summaryrefslogtreecommitdiffstats
path: root/svtools/source/graphic/graphic.cxx
diff options
context:
space:
mode:
authorArnaud Versini <arnaud.versini@gmail.com>2012-11-11 11:45:38 +0100
committerTor Lillqvist <tml@iki.fi>2012-11-12 10:28:10 +0000
commitaa09c0b8b2899c61300c90fa3472381e4d0eaf25 (patch)
tree251e34e45e52953e369d69c4247ee3e16acb5a5d /svtools/source/graphic/graphic.cxx
parentsync android manifest with project properties: sdk version (diff)
downloadcore-aa09c0b8b2899c61300c90fa3472381e4d0eaf25.tar.gz
core-aa09c0b8b2899c61300c90fa3472381e4d0eaf25.zip
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/source/graphic/graphic.cxx')
-rw-r--r--svtools/source/graphic/graphic.cxx3
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 );
}