From ba3a9184045f7862ee94de8b3210dcbe9558f61a Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 17 Dec 2015 14:58:31 +0100 Subject: Remove trivial class XMLTransformerContextVector Change-Id: I140614895d5727ffd97681ddd06bf7439fe7a443 --- xmloff/source/transform/CreateElemTContext.cxx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'xmloff/source/transform/CreateElemTContext.cxx') diff --git a/xmloff/source/transform/CreateElemTContext.cxx b/xmloff/source/transform/CreateElemTContext.cxx index 2a39c9a69bc3..48fad335200d 100644 --- a/xmloff/source/transform/CreateElemTContext.cxx +++ b/xmloff/source/transform/CreateElemTContext.cxx @@ -17,11 +17,14 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include + +#include + #include "CreateElemTContext.hxx" #include "MutableAttrList.hxx" #include "TransformerBase.hxx" #include "TransformerActions.hxx" -#include "TContextVector.hxx" #include "FlatTContext.hxx" #include "AttrTransformerAction.hxx" #include @@ -49,7 +52,7 @@ void XMLCreateElemTransformerContext::StartElement( { Reference< XAttributeList > xAttrList( rAttrList ); - XMLTransformerContextVector aChildContexts; + std::vector> aChildContexts; XMLMutableAttributeList *pMutableAttrList = nullptr; XMLTransformerActions *pActions = @@ -106,11 +109,9 @@ void XMLCreateElemTransformerContext::StartElement( } XMLTransformerContext::StartElement( xAttrList ); - XMLTransformerContextVector::iterator aIter = aChildContexts.begin(); - - for( ; aIter != aChildContexts.end(); ++aIter ) + for (auto const & i: aChildContexts) { - (*aIter)->Export(); + i->Export(); } } -- cgit