diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-06-18 15:38:17 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-06-18 20:03:42 +0200 |
commit | 2836b78b54650d117282a9a345677d1b4d9fc043 (patch) | |
tree | 7627772f88f8d6f1b56f4f4db2675ae8772638f6 /xmloff/source/chart/SchXMLPlotAreaContext.cxx | |
parent | 697f8edbb0154ed72a42e4e8d7c4942cfe7dd59d (diff) |
loplugin:logexceptionnicely in xmlhelp..xmlsecurity
Change-Id: Idbf0de3f953b08f98144241346533ad30f49269e
Reviewed-on: https://gerrit.libreoffice.org/74285
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/source/chart/SchXMLPlotAreaContext.cxx')
-rw-r--r-- | xmloff/source/chart/SchXMLPlotAreaContext.cxx | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/xmloff/source/chart/SchXMLPlotAreaContext.cxx b/xmloff/source/chart/SchXMLPlotAreaContext.cxx index 46fee917baf1..1cf2785030a1 100644 --- a/xmloff/source/chart/SchXMLPlotAreaContext.cxx +++ b/xmloff/source/chart/SchXMLPlotAreaContext.cxx @@ -28,6 +28,7 @@ #include <comphelper/processfactory.hxx> #include <sal/log.hxx> +#include <tools/diagnose_ex.h> #include <xmloff/xmlnmspe.hxx> #include <xmloff/xmlement.hxx> #include <xmloff/nmspmap.hxx> @@ -116,9 +117,10 @@ void SchXML3DSceneAttributesHelper::getCameraDefaultFromDiagram( const uno::Refe maVUP.setZ( aCamGeo.vup.DirectionZ ); } } - catch( const uno::Exception & rEx ) + catch( const uno::Exception & ) { - SAL_INFO("xmloff.chart", "Exception caught for property NumberOfLines: " << rEx); + css::uno::Any ex( cppu::getCaughtException() ); + SAL_INFO("xmloff.chart", "Exception caught for property NumberOfLines: " << exceptionToString(ex)); } } @@ -382,9 +384,9 @@ void SchXMLPlotAreaContext::StartElement( const uno::Reference< xml::sax::XAttri xProp->getPropertyValue("NumberOfLines") >>= mnNumOfLinesProp; xProp->getPropertyValue("Volume") >>= mbStockHasVolume; } - catch( const uno::Exception & rEx ) + catch( const uno::Exception & ) { - SAL_INFO("xmloff.chart", "PlotAreaContext:EndElement(): Exception caught: " << rEx); + TOOLS_INFO_EXCEPTION("xmloff.chart", "PlotAreaContext:EndElement(): Exception caught"); } } // if @@ -552,9 +554,9 @@ void SchXMLPlotAreaContext::EndElement() xDiaProp->setPropertyValue("NumberOfLines", uno::makeAny( mnNumOfLinesProp )); } - catch( const uno::Exception & rEx ) + catch( const uno::Exception & ) { - SAL_INFO("xmloff.chart", "Exception caught for property NumberOfLines: " << rEx); + TOOLS_INFO_EXCEPTION("xmloff.chart", "Exception caught for property NumberOfLines"); } } @@ -567,9 +569,9 @@ void SchXMLPlotAreaContext::EndElement() xDiaProp->setPropertyValue("Volume", uno::makeAny( true )); } - catch( const uno::Exception & rEx ) + catch( const uno::Exception & ) { - SAL_INFO("xmloff.chart", "Exception caught for property Volume: " << rEx); + TOOLS_INFO_EXCEPTION("xmloff.chart", "Exception caught for property Volume"); } } } |