summaryrefslogtreecommitdiff
path: root/writerfilter
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2014-11-04 09:50:31 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-11-04 09:58:15 +0100
commit768d22a83e7e6aae430b2e5e4ed28f2574aad12d (patch)
tree1680af854d3dcc2ccea215f496d44f487affd13d /writerfilter
parent5353c6dc9ddf36c810f32d678c13c1815547897a (diff)
Use comphelper::SequenceAsVector
Change-Id: Iaf5fb72b065cc0d2a412b027d41d7618654d30b1
Diffstat (limited to 'writerfilter')
-rw-r--r--writerfilter/source/dmapper/CellColorHandler.cxx8
-rw-r--r--writerfilter/source/dmapper/CellColorHandler.hxx3
2 files changed, 3 insertions, 8 deletions
diff --git a/writerfilter/source/dmapper/CellColorHandler.cxx b/writerfilter/source/dmapper/CellColorHandler.cxx
index 9434b2e65087..4b6657c6ea2f 100644
--- a/writerfilter/source/dmapper/CellColorHandler.cxx
+++ b/writerfilter/source/dmapper/CellColorHandler.cxx
@@ -298,13 +298,7 @@ beans::PropertyValue CellColorHandler::getInteropGrabBag()
{
beans::PropertyValue aRet;
aRet.Name = m_aInteropGrabBagName;
-
- 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(aSeq);
+ aRet.Value = uno::makeAny(m_aInteropGrabBag.getAsConstList());
return aRet;
}
diff --git a/writerfilter/source/dmapper/CellColorHandler.hxx b/writerfilter/source/dmapper/CellColorHandler.hxx
index d909d85d01a2..041272d2b2a6 100644
--- a/writerfilter/source/dmapper/CellColorHandler.hxx
+++ b/writerfilter/source/dmapper/CellColorHandler.hxx
@@ -24,6 +24,7 @@
#include <vector>
#include <com/sun/star/beans/PropertyValue.hpp>
+#include <comphelper/sequenceasvector.hxx>
namespace writerfilter {
namespace dmapper
@@ -40,7 +41,7 @@ private:
OutputFormat m_OutputFormat;
OUString m_aInteropGrabBagName;
- std::vector<css::beans::PropertyValue> m_aInteropGrabBag;
+ comphelper::SequenceAsVector<css::beans::PropertyValue> m_aInteropGrabBag;
// Properties
virtual void lcl_attribute(Id Name, Value & val) SAL_OVERRIDE;