summaryrefslogtreecommitdiff
path: root/xmloff/source/transform/CreateElemTContext.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-12-17 14:58:31 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-12-17 16:51:16 +0100
commitba3a9184045f7862ee94de8b3210dcbe9558f61a (patch)
tree6b6042d146c4d3833cc0ecdec5e5feb4a5debe97 /xmloff/source/transform/CreateElemTContext.cxx
parent21e72c5f1d315068b0aa6afd3b9750c2ad878dcb (diff)
Remove trivial class XMLTransformerContextVector
Change-Id: I140614895d5727ffd97681ddd06bf7439fe7a443
Diffstat (limited to 'xmloff/source/transform/CreateElemTContext.cxx')
-rw-r--r--xmloff/source/transform/CreateElemTContext.cxx13
1 files changed, 7 insertions, 6 deletions
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 <sal/config.h>
+
+#include <vector>
+
#include "CreateElemTContext.hxx"
#include "MutableAttrList.hxx"
#include "TransformerBase.hxx"
#include "TransformerActions.hxx"
-#include "TContextVector.hxx"
#include "FlatTContext.hxx"
#include "AttrTransformerAction.hxx"
#include <xmloff/nmspmap.hxx>
@@ -49,7 +52,7 @@ void XMLCreateElemTransformerContext::StartElement(
{
Reference< XAttributeList > xAttrList( rAttrList );
- XMLTransformerContextVector aChildContexts;
+ std::vector<rtl::Reference<XMLTransformerContext>> 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();
}
}