diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-01-24 10:08:45 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-01-24 10:17:57 +0000 |
commit | 04e5d7a6140295cd73ca92449d6f6783b6d8fd04 (patch) | |
tree | 361b88a21ddcae9495c443c941846d6a2531448d /vcl/source | |
parent | a8f67df121a16c72c521d91c3d9268089f961d99 (diff) |
can use memcmp here, for hopefully a little import boost
Change-Id: I5084eff570a66cc2596b400cbb83d1eb24889f0b
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/filter/ixpm/xpmread.cxx | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/vcl/source/filter/ixpm/xpmread.cxx b/vcl/source/filter/ixpm/xpmread.cxx index 9ca2f59fd9d8..3be4e36f718c 100644 --- a/vcl/source/filter/ixpm/xpmread.cxx +++ b/vcl/source/filter/ixpm/xpmread.cxx @@ -539,14 +539,7 @@ bool XPMReader::ImplCompare( sal_uInt8 const * pSource, sal_uInt8 const * pDest, return true; } - for ( sal_uLong i = 0; i < nSize; i++ ) - { - if ( pSource[i] != pDest[i] ) - { - return false; - } - } - return true; + return memcmp(pSource, pDest, nSize) == 0; } // ImplGetPara tries to retrieve nNumb (0...x) parameters from mpStringBuf. |