summaryrefslogtreecommitdiff
path: root/oox/source/drawingml/shape.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-06-15 13:12:33 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-06-15 19:57:59 +0200
commit8d234284d0ec0393e8d9d5057f68f48f33bc8d9d (patch)
tree7d08fffc27aa49ad3024afa8fa05418029457efd /oox/source/drawingml/shape.cxx
parentdc9d11e20aca4f7df7bd3d11d84e963ce4abf2bc (diff)
loplugin:logexceptionnicely in linguistic..oox
Change-Id: I3f96494f5fecb2f1011578b768198c1204147202 Reviewed-on: https://gerrit.libreoffice.org/74099 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'oox/source/drawingml/shape.cxx')
-rw-r--r--oox/source/drawingml/shape.cxx17
1 files changed, 9 insertions, 8 deletions
diff --git a/oox/source/drawingml/shape.cxx b/oox/source/drawingml/shape.cxx
index 6e19aa77841f..164de7d8a140 100644
--- a/oox/source/drawingml/shape.cxx
+++ b/oox/source/drawingml/shape.cxx
@@ -51,6 +51,7 @@
#include <comphelper/propertysequence.hxx>
#include <comphelper/propertyvalue.hxx>
#include <comphelper/sequence.hxx>
+#include <tools/diagnose_ex.h>
#include <tools/gen.hxx>
#include <tools/globname.hxx>
#include <tools/mapunit.hxx>
@@ -296,9 +297,9 @@ void Shape::addShape(
}
}
}
- catch( const Exception& e )
+ catch( const Exception& )
{
- SAL_WARN( "oox.drawingml", "Shape::addShape: " << e );
+ TOOLS_WARN_EXCEPTION( "oox.drawingml", "Shape::addShape" );
}
}
@@ -1500,9 +1501,9 @@ void Shape::keepDiagramCompatibilityInfo()
} else
xSet->setPropertyValue( aGrabBagPropName, Any( maDiagramDoms ) );
}
- catch( const Exception& e )
+ catch( const Exception& )
{
- SAL_WARN( "oox.drawingml", "Shape::keepDiagramCompatibilityInfo: " << e );
+ TOOLS_WARN_EXCEPTION( "oox.drawingml", "Shape::keepDiagramCompatibilityInfo" );
}
}
@@ -1523,9 +1524,9 @@ void Shape::convertSmartArtToMetafile(XmlFilterBase const & rFilterBase)
xShapes->remove(Reference<XShape>(xShapes->getByIndex(0), UNO_QUERY_THROW));
xShapes->add(xShape);
}
- catch (const Exception& e)
+ catch (const Exception&)
{
- SAL_WARN("oox.drawingml", "Shape::convertSmartArtToMetafile: " << e);
+ TOOLS_WARN_EXCEPTION("oox.drawingml", "Shape::convertSmartArtToMetafile");
}
}
@@ -1592,9 +1593,9 @@ Reference < XShape > Shape::renderDiagramToGraphic( XmlFilterBase const & rFilte
xPropSet->setPropertyValue( "SizeProtect", Any( true ) );
xPropSet->setPropertyValue( "Name", Any( OUString( "RenderedShapes" ) ) );
}
- catch( const Exception& e )
+ catch( const Exception& )
{
- SAL_WARN( "oox.drawingml", "Shape::renderDiagramToGraphic: " << e );
+ TOOLS_WARN_EXCEPTION( "oox.drawingml", "Shape::renderDiagramToGraphic" );
}
return xShape;