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

Miklos Vajna vmiklos at collabora.co.uk
Wed Nov 18 00:07:13 PST 2015


 writerfilter/source/dmapper/TDefTableHandler.cxx |    8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

New commits:
commit a69955d91cd0f5570bf17686be3164a98ac806eb
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Wed Nov 18 09:05:54 2015 +0100

    Use comphelper::containerToSequence
    
    Change-Id: Iecb443605fe53de91703207d3253da5d8a586f4c

diff --git a/writerfilter/source/dmapper/TDefTableHandler.cxx b/writerfilter/source/dmapper/TDefTableHandler.cxx
index 8c38956..dce4d11 100644
--- a/writerfilter/source/dmapper/TDefTableHandler.cxx
+++ b/writerfilter/source/dmapper/TDefTableHandler.cxx
@@ -24,6 +24,7 @@
 #include <com/sun/star/table/BorderLine2.hpp>
 #include <com/sun/star/text/TableColumnSeparator.hpp>
 #include <com/sun/star/text/VertOrientation.hpp>
+#include <comphelper/sequence.hxx>
 
 namespace writerfilter {
 namespace dmapper {
@@ -458,13 +459,8 @@ beans::PropertyValue TDefTableHandler::getInteropGrabBag(const OUString& aName)
     else
         aRet.Name = aName;
 
-    uno::Sequence<beans::PropertyValue> aSeq(m_aInteropGrabBag.size());
-    beans::PropertyValue* pSeq = aSeq.getArray();
-    for (std::vector<beans::PropertyValue>::iterator i = m_aInteropGrabBag.begin(); i != m_aInteropGrabBag.end(); ++i)
-        *pSeq++ = *i;
+    aRet.Value = uno::makeAny(comphelper::containerToSequence(m_aInteropGrabBag));
     m_aInteropGrabBag.clear();
-
-    aRet.Value = uno::makeAny(aSeq);
     return aRet;
 }
 


More information about the Libreoffice-commits mailing list