summaryrefslogtreecommitdiff
path: root/sc/source/ui/unoobj/scdetect.cxx
diff options
context:
space:
mode:
authorArnaud Versini <arnaud.versini@gmail.com>2012-07-28 20:34:39 +0200
committerArnaud Versini <arnaud.versini@gmail.com>2012-07-28 20:34:53 +0200
commit363fb46d5d07758a4b02a135addd8913cda2f933 (patch)
treee6dec3bc31dca36f89390f658d57629c3ca81462 /sc/source/ui/unoobj/scdetect.cxx
parentdb4f5372cb2d83ba9263071978ef837de847a689 (diff)
Use memset and memcmp insteadof rtl_zeroMemory and rtl_compareMemory in sc
Change-Id: Ia40c0af6844f736f0aad2566aec3c71f5016123e
Diffstat (limited to 'sc/source/ui/unoobj/scdetect.cxx')
-rw-r--r--sc/source/ui/unoobj/scdetect.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/unoobj/scdetect.cxx b/sc/source/ui/unoobj/scdetect.cxx
index 0e034c46a827..cd3baf852c39 100644
--- a/sc/source/ui/unoobj/scdetect.cxx
+++ b/sc/source/ui/unoobj/scdetect.cxx
@@ -169,7 +169,7 @@ static const SfxFilter* lcl_DetectExcelXML( SvStream& rStream, SfxFilterMatcher&
if ( nBytesRead >= 3 && aBuffer[0] == 0xEF && aBuffer[1] == 0xBB && aBuffer[2] == 0xBF )
nXMLStart = 3;
- if ( nBytesRead >= nXMLStart + 5 && rtl_compareMemory( aBuffer+nXMLStart, "<?xml", 5 ) == 0 )
+ if ( nBytesRead >= nXMLStart + 5 && memcmp( aBuffer+nXMLStart, "<?xml", 5 ) == 0 )
{
// Be consistent with XMLFilterDetect service: Check for presence of "Workbook" in XML file.