diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-09-28 23:33:11 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-09-29 09:33:47 +0100 |
commit | a336daff85341746591d0458b9eb2b727be762ab (patch) | |
tree | 1b922b980803931c0d6f5001b4d40292bd3c20be /sc | |
parent | 2774cab826c8b5e3a92e98d79c3e64cbb25f4fda (diff) |
ByteString->rtl::OString
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/ftools/fapihelper.cxx | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/sc/source/filter/ftools/fapihelper.cxx b/sc/source/filter/ftools/fapihelper.cxx index 82c720e559b9..97770ceecfb9 100644 --- a/sc/source/filter/ftools/fapihelper.cxx +++ b/sc/source/filter/ftools/fapihelper.cxx @@ -38,6 +38,7 @@ #include <comphelper/docpasswordhelper.hxx> #include <comphelper/processfactory.hxx> #include <tools/urlobj.hxx> +#include <rtl/strbuf.hxx> #include <sfx2/objsh.hxx> #include <sfx2/docfile.hxx> #include <sfx2/request.hxx> @@ -280,13 +281,13 @@ void ScfPropertySet::SetAnyProperty( const OUString& rPropName, const Any& rValu if( mxPropSet.is() ) mxPropSet->setPropertyValue( rPropName, rValue ); } - catch( Exception& ) + catch (const Exception&) { - OSL_FAIL( - ByteString( "ScfPropertySet::SetAnyProperty - cannot set property \"" ). - Append( ByteString( String( rPropName ), RTL_TEXTENCODING_ASCII_US ) ). - Append( '"' ). - GetBuffer() ); + OSL_FAIL(rtl::OStringBuffer(RTL_CONSTASCII_STRINGPARAM( + "ScfPropertySet::SetAnyProperty - cannot set property \"")) + .append(rtl::OUStringToOString(rPropName, + RTL_TEXTENCODING_ASCII_US)) + .append('"').getStr()); } } |