[Libreoffice-commits] core.git: writerfilter/source

Miklos Vajna vmiklos at collabora.co.uk
Wed Nov 18 23:31:59 PST 2015


 writerfilter/source/dmapper/DomainMapper_Impl.cxx |    8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

New commits:
commit f7b5f477bfd942e0a1d8880c372635000d724dd7
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Thu Nov 19 08:31:09 2015 +0100

    Simplify writerfilter::dmapper::DomainMapper_Impl::appendGrabBag()
    
    Change-Id: I65c893fa8ab8ea6dfb061127c9b0bd31c906ed30

diff --git a/writerfilter/source/dmapper/DomainMapper_Impl.cxx b/writerfilter/source/dmapper/DomainMapper_Impl.cxx
index c93c456..6ec67c4 100644
--- a/writerfilter/source/dmapper/DomainMapper_Impl.cxx
+++ b/writerfilter/source/dmapper/DomainMapper_Impl.cxx
@@ -5227,14 +5227,8 @@ void DomainMapper_Impl::appendGrabBag(std::vector<beans::PropertyValue>& rIntero
         return;
     beans::PropertyValue aProperty;
     aProperty.Name = aKey;
-
-    uno::Sequence<beans::PropertyValue> aSeq(rValue.size());
-    beans::PropertyValue* pSeq = aSeq.getArray();
-    for (std::vector<beans::PropertyValue>::iterator i = rValue.begin(); i != rValue.end(); ++i)
-        *pSeq++ = *i;
-
+    aProperty.Value = uno::makeAny(comphelper::containerToSequence(rValue));
     rValue.clear();
-    aProperty.Value = uno::makeAny(aSeq);
     rInteropGrabBag.push_back(aProperty);
 }
 


More information about the Libreoffice-commits mailing list