summaryrefslogtreecommitdiff
path: root/oox/source/shape
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2018-03-31 12:17:55 +0200
committerJulien Nabet <serval2412@yahoo.fr>2018-03-31 13:25:28 +0200
commit0d06d1d16775fde3b0b34f3374907e07cbba763d (patch)
treebd74c0df75afe158c8ae9a67dd1c41d2cd2239eb /oox/source/shape
parent67c04cecc86f4a2e11da3b1fd982940a526cb6cb (diff)
Use for-range loops in oox (part2)
Change-Id: I7cbeb67a1adcdb9b0003e22b61789a882fc336c9 Reviewed-on: https://gerrit.libreoffice.org/52182 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'oox/source/shape')
-rw-r--r--oox/source/shape/ShapeContextHandler.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/oox/source/shape/ShapeContextHandler.cxx b/oox/source/shape/ShapeContextHandler.cxx
index b5e2f6dfc6e3..104f92882c27 100644
--- a/oox/source/shape/ShapeContextHandler.cxx
+++ b/oox/source/shape/ShapeContextHandler.cxx
@@ -435,12 +435,12 @@ ShapeContextHandler::getShape()
else
{
// Prerendered diagram output is available, then use that, and throw away the original result.
- for (std::vector<OUString>::const_iterator aIt = mpShape->getExtDrawings().begin(); aIt != mpShape->getExtDrawings().end(); ++aIt)
+ for (auto const& extDrawing : mpShape->getExtDrawings())
{
DiagramGraphicDataContext* pDiagramGraphicDataContext = dynamic_cast<DiagramGraphicDataContext*>(mxDiagramShapeContext.get());
if (!pDiagramGraphicDataContext)
break;
- OUString aFragmentPath(pDiagramGraphicDataContext->getFragmentPathFromRelId(*aIt));
+ OUString aFragmentPath(pDiagramGraphicDataContext->getFragmentPathFromRelId(extDrawing));
oox::drawingml::ShapePtr pShapePtr( new Shape( "com.sun.star.drawing.GroupShape" ) );
pShapePtr->setDiagramType();
mxFilterBase->importFragment(new ShapeDrawingFragmentHandler(*mxFilterBase, aFragmentPath, pShapePtr));