summaryrefslogtreecommitdiff
path: root/sc/source/ui/unoobj/scdetect.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/unoobj/scdetect.cxx')
-rw-r--r--sc/source/ui/unoobj/scdetect.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/unoobj/scdetect.cxx b/sc/source/ui/unoobj/scdetect.cxx
index a460a02bfea1..d9b644fea82d 100644
--- a/sc/source/ui/unoobj/scdetect.cxx
+++ b/sc/source/ui/unoobj/scdetect.cxx
@@ -734,9 +734,9 @@ static sal_Bool lcl_MayBeDBase( SvStream& rStream )
// get file header
rStr.Seek( 0 );
const sal_Size nTrySize = 80;
- ByteString aHeader = read_uInt8s_ToOString(rStr, nTrySize);
+ rtl::OString aHeader = read_uInt8s_ToOString(rStr, nTrySize);
- if ( HTMLParser::IsHTMLFormat( aHeader.GetBuffer() ) )
+ if ( HTMLParser::IsHTMLFormat(aHeader.getStr()) )
{
// test for HTML
if ( pPreselectedFilter->GetName().EqualsAscii(pFilterHtml) )
@@ -750,7 +750,7 @@ static sal_Bool lcl_MayBeDBase( SvStream& rStream )
bFakeXLS = true;
}
}
- else if ( aHeader.CompareTo( "{\\rtf", 5 ) == COMPARE_EQUAL )
+ else if ( aHeader.copy(0, 5).equalsL("{\\rtf", 5) )
{
// test for RTF
pFilter = aMatcher.GetFilter4FilterName( String::CreateFromAscii(pFilterRtf) );