Kaydet (Commit) aa09c0b8 authored tarafından Arnaud Versini's avatar Arnaud Versini Kaydeden (comit) Tor Lillqvist

Use memcmp instead of rtl_compareMemory in svtools

Change-Id: Id051a39774446595b5082316a470c23246de8124
Reviewed-on: https://gerrit.libreoffice.org/1034Reviewed-by: 's avatarTor Lillqvist <tml@iki.fi>
Tested-by: 's avatarTor Lillqvist <tml@iki.fi>
üst 29719a36
......@@ -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 );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment