summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorArkadiy Illarionov <qarkai@gmail.com>2018-09-17 19:10:07 +0300
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-09-18 08:31:45 +0200
commit36f2df8a32429ac3f3c91203c39a87003003260e (patch)
tree39700e7d6d4bd0fa1a6be4dfd862ce823643a5d2 /xmloff
parentf63a60f56156e4ac17887e6c96d15fb865a2a8eb (diff)
Replace manual copying with comphelper::containerToSequence
30530afaaa715473a2f9c3f068beeed5f3a98daf follow-up Change-Id: I74082858c938087c5698ef0948a72b9a61b9127c Reviewed-on: https://gerrit.libreoffice.org/60593 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/text/txtflde.cxx13
1 files changed, 2 insertions, 11 deletions
diff --git a/xmloff/source/text/txtflde.cxx b/xmloff/source/text/txtflde.cxx
index ba5bba24ac6a..d607e15540dd 100644
--- a/xmloff/source/text/txtflde.cxx
+++ b/xmloff/source/text/txtflde.cxx
@@ -63,6 +63,7 @@
#include <com/sun/star/text/BibliographyDataType.hpp>
#include <com/sun/star/sdb/CommandType.hpp>
#include <com/sun/star/rdf/XMetadatable.hpp>
+#include <comphelper/sequence.hxx>
#include <o3tl/any.hxx>
#include <rtl/ustrbuf.hxx>
#include <tools/debug.hxx>
@@ -1922,17 +1923,7 @@ void XMLTextFieldExport::ExportFieldDeclarations(
if (aMapIter != pUsedMasters->end())
{
// found the set of used field masters
- set<OUString> & rOurMasters = aMapIter->second;
-
- // copy set to sequence
- aFieldMasters.realloc( rOurMasters.size() );
- sal_Int32 i = 0;
- for( const auto& rMaster : rOurMasters )
- {
- aFieldMasters[i] = rMaster;
- ++i;
- }
-
+ aFieldMasters = comphelper::containerToSequence(aMapIter->second);
pUsedMasters->erase(rText);
}
// else: XText not found -> ignore