[Libreoffice-commits] core.git: vcl/source
Caolán McNamara
caolanm at redhat.com
Tue Jan 24 10:19:24 UTC 2017
vcl/source/filter/ixpm/xpmread.cxx | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
New commits:
commit 04e5d7a6140295cd73ca92449d6f6783b6d8fd04
Author: Caolán McNamara <caolanm at redhat.com>
Date: Tue Jan 24 10:08:45 2017 +0000
can use memcmp here, for hopefully a little import boost
Change-Id: I5084eff570a66cc2596b400cbb83d1eb24889f0b
diff --git a/vcl/source/filter/ixpm/xpmread.cxx b/vcl/source/filter/ixpm/xpmread.cxx
index 9ca2f59..3be4e36 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.
More information about the Libreoffice-commits
mailing list