summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@suse.com>2012-02-09 22:39:32 -0500
committerKohei Yoshida <kohei.yoshida@suse.com>2012-02-09 22:39:32 -0500
commite20365e6dd940ff5564fa106a2bcbd174bce307e (patch)
tree374c3a5329bac84cc3c148f38620b34123c3b0fd
parent70afc6aac31ea619000690b5478006bbc3f04a13 (diff)
ByteString to rtl::OString.
-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) );