diff options
Diffstat (limited to 'binfilter/bf_xmloff/source/chart/xmloff_SchXMLExport.cxx')
-rw-r--r-- | binfilter/bf_xmloff/source/chart/xmloff_SchXMLExport.cxx | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/binfilter/bf_xmloff/source/chart/xmloff_SchXMLExport.cxx b/binfilter/bf_xmloff/source/chart/xmloff_SchXMLExport.cxx index 6b700a9ef..fae1ada15 100644 --- a/binfilter/bf_xmloff/source/chart/xmloff_SchXMLExport.cxx +++ b/binfilter/bf_xmloff/source/chart/xmloff_SchXMLExport.cxx @@ -1006,11 +1006,10 @@ void SchXMLExportHelper::exportPlotArea( uno::Reference< chart::XDiagram > xDiag xDiaProp->getPropertyValue( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "NumberOfLines" ))) >>= nNumberOfLinesInBarChart; } - catch( uno::Exception & aEx ) + catch(const uno::Exception & aEx) { - String aStr( aEx.Message ); - ByteString aBStr( aStr, RTL_TEXTENCODING_ASCII_US ); - OSL_TRACE( "Exception caught for property NumberOfLines: %s", aBStr.GetBuffer()); + rtl::OString aBStr(rtl::OUStringToOString(aEx.Message, RTL_TEXTENCODING_ASCII_US)); + OSL_TRACE( "Exception caught for property NumberOfLines: %s", aBStr.getStr()); } } else if( 0 == xDiagram->getDiagramType().reverseCompareToAsciiL( @@ -1022,11 +1021,10 @@ void SchXMLExportHelper::exportPlotArea( uno::Reference< chart::XDiagram > xDiag xDiaProp->getPropertyValue( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Volume" ))) >>= bStockHasVolume; } - catch( uno::Exception & aEx ) + catch (const uno::Exception & aEx) { - String aStr( aEx.Message ); - ByteString aBStr( aStr, RTL_TEXTENCODING_ASCII_US ); - OSL_TRACE( "Exception caught for property Volume: %s", aBStr.GetBuffer()); + rtl::OString aBStr(rtl::OUStringToOString(aEx.Message, RTL_TEXTENCODING_ASCII_US)); + OSL_TRACE( "Exception caught for property Volume: %s", aBStr.getStr()); } } } |