Kaydet (Commit) daf354fa authored tarafından Miklos Vajna's avatar Miklos Vajna

Use comphelper::SequenceAsVector

Change-Id: I0d1e22344a2aa1474d022364b12cd34d7d56c2d8
üst e463de2a
......@@ -103,7 +103,7 @@ void TblStylePrHandler::lcl_sprm(Sprm & rSprm)
case NS_ooxml::LN_CT_TrPrBase:
case NS_ooxml::LN_CT_TcPrBase:
{
std::vector<beans::PropertyValue> aSavedGrabBag;
comphelper::SequenceAsVector<beans::PropertyValue> aSavedGrabBag;
bool bGrabBag = rSprm.getId() == NS_ooxml::LN_CT_PPrBase ||
rSprm.getId() == NS_ooxml::LN_EG_RPrBase ||
rSprm.getId() == NS_ooxml::LN_CT_TblPrBase ||
......@@ -173,12 +173,7 @@ beans::PropertyValue TblStylePrHandler::getInteropGrabBag(const OUString& aName)
beans::PropertyValue aRet;
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(aSeq);
aRet.Value = uno::makeAny(m_aInteropGrabBag.getAsConstList());
return aRet;
}
......
......@@ -25,6 +25,7 @@
#include <dmapper/DomainMapper.hxx>
#include <resourcemodel/LoggedResources.hxx>
#include <boost/shared_ptr.hpp>
#include <comphelper/sequenceasvector.hxx>
namespace writerfilter {
namespace dmapper {
......@@ -57,7 +58,7 @@ private:
TblStyleType m_nType;
PropertyMapPtr m_pProperties;
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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment