diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-06-23 00:04:29 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-06-23 09:07:43 +0100 |
commit | d855f8aa22ec2cd46fa2b772398acfc4e68ac894 (patch) | |
tree | bb3dd298aa67e2c07dc4b5034074a0cd96979eb4 /sfx2 | |
parent | 6272740a36e34642eb94cbf7e9fe14b4ff329c9e (diff) |
remove parse ByteString variant
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/doc/docfile.cxx | 5 | ||||
-rw-r--r-- | sfx2/source/doc/objmisc.cxx | 5 |
2 files changed, 4 insertions, 6 deletions
diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx index 3439a00276..d5f3733400 100644 --- a/sfx2/source/doc/docfile.cxx +++ b/sfx2/source/doc/docfile.cxx @@ -3483,11 +3483,10 @@ void SfxMedium::CreateTempFileNoCopy() ::rtl::OUString aField; aAny >>= aField; - ::rtl::OString sContent = ::rtl::OUStringToOString( aField, RTL_TEXTENCODING_ASCII_US ); - ByteString sType, sSubType; + String sType, sSubType; INetContentTypeParameterList aParameters; - if( INetContentTypes::parse( sContent, sType, sSubType, &aParameters ) ) + if (INetContentTypes::parse(aField, sType, sSubType, &aParameters)) { const INetContentTypeParameter * pCharset = aParameters.find("charset"); if (pCharset != 0) diff --git a/sfx2/source/doc/objmisc.cxx b/sfx2/source/doc/objmisc.cxx index c49b980423..98ded9fdf3 100644 --- a/sfx2/source/doc/objmisc.cxx +++ b/sfx2/source/doc/objmisc.cxx @@ -1781,11 +1781,10 @@ void SfxHeaderAttributes_Impl::SetAttribute( const SvKeyValue& rKV ) } else if( rKV.GetKey().CompareIgnoreCaseToAscii( "content-type" ) == COMPARE_EQUAL ) { - ::rtl::OString sContent = ::rtl::OUStringToOString( aValue, RTL_TEXTENCODING_ASCII_US ); - ByteString sType, sSubType; + String sType, sSubType; INetContentTypeParameterList aParameters; - if( INetContentTypes::parse( sContent, sType, sSubType, &aParameters ) ) + if (INetContentTypes::parse(aValue, sType, sSubType, &aParameters)) { const INetContentTypeParameter * pCharset = aParameters.find("charset"); if (pCharset != 0) |