summaryrefslogtreecommitdiff
path: root/writerfilter
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-07-21 09:07:45 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-07-21 09:08:46 +0200
commitf46bbb9f60a487e62f1fb028570329c0f2dff959 (patch)
treef9d3dbc5bf9886b80c82b80e23e8275c0c13702b /writerfilter
parenta5da2a353f21debba7ef6262c01957c43b4f1c6e (diff)
Use comphelper::containerToSequence()
Change-Id: Ia7cc48f6f1bc041b95164d551e2cbc9ea2dbf2e8
Diffstat (limited to 'writerfilter')
-rw-r--r--writerfilter/source/dmapper/DomainMapper.cxx7
1 files changed, 1 insertions, 6 deletions
diff --git a/writerfilter/source/dmapper/DomainMapper.cxx b/writerfilter/source/dmapper/DomainMapper.cxx
index 8a875ae982d8..6a4a85a2ddfb 100644
--- a/writerfilter/source/dmapper/DomainMapper.cxx
+++ b/writerfilter/source/dmapper/DomainMapper.cxx
@@ -3462,15 +3462,10 @@ beans::PropertyValue DomainMapper::getInteropGrabBag()
{
beans::PropertyValue aRet;
aRet.Name = m_pImpl->m_aInteropGrabBagName;
-
- uno::Sequence<beans::PropertyValue> aSeq(m_pImpl->m_aInteropGrabBag.size());
- beans::PropertyValue* pSeq = aSeq.getArray();
- for (std::vector<beans::PropertyValue>::iterator i = m_pImpl->m_aInteropGrabBag.begin(); i != m_pImpl->m_aInteropGrabBag.end(); ++i)
- *pSeq++ = *i;
+ aRet.Value = uno::makeAny(comphelper::containerToSequence(m_pImpl->m_aInteropGrabBag));
m_pImpl->m_aInteropGrabBag.clear();
m_pImpl->m_aInteropGrabBagName.clear();
- aRet.Value = uno::makeAny(aSeq);
return aRet;
}