summaryrefslogtreecommitdiffstats
path: root/binfilter/bf_xmloff/source/chart/xmloff_SchXMLPlotAreaContext.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'binfilter/bf_xmloff/source/chart/xmloff_SchXMLPlotAreaContext.cxx')
-rw-r--r--binfilter/bf_xmloff/source/chart/xmloff_SchXMLPlotAreaContext.cxx14
1 files changed, 6 insertions, 8 deletions
diff --git a/binfilter/bf_xmloff/source/chart/xmloff_SchXMLPlotAreaContext.cxx b/binfilter/bf_xmloff/source/chart/xmloff_SchXMLPlotAreaContext.cxx
index b2d54a6e4..d0c9125aa 100644
--- a/binfilter/bf_xmloff/source/chart/xmloff_SchXMLPlotAreaContext.cxx
+++ b/binfilter/bf_xmloff/source/chart/xmloff_SchXMLPlotAreaContext.cxx
@@ -365,11 +365,10 @@ void SchXMLPlotAreaContext::EndElement()
xProp->setPropertyValue( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "NumberOfLines" )),
uno::makeAny( mnNumOfLines ));
}
- 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());
}
}
@@ -382,11 +381,10 @@ void SchXMLPlotAreaContext::EndElement()
xProp->setPropertyValue( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Volume" )),
uno::makeAny( mbStockHasVolume ));
}
- 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());
}
}
}