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

Use comphelper::SequenceAsVector

Change-Id: Id163680534a5f4786531954b855f30dc10b9717d
üst d58bea0f
...@@ -473,14 +473,9 @@ void GraphicImport::putPropertyToFrameGrabBag( const OUString& sPropertyName, co ...@@ -473,14 +473,9 @@ void GraphicImport::putPropertyToFrameGrabBag( const OUString& sPropertyName, co
if (xSetInfo->hasPropertyByName(aGrabBagPropName)) if (xSetInfo->hasPropertyByName(aGrabBagPropName))
{ {
uno::Sequence< beans::PropertyValue > aGrabBag; comphelper::SequenceAsVector<beans::PropertyValue> aGrabBag(xSet->getPropertyValue(aGrabBagPropName));
xSet->getPropertyValue( aGrabBagPropName ) >>= aGrabBag; aGrabBag.push_back(pProperty);
xSet->setPropertyValue(aGrabBagPropName, uno::makeAny(aGrabBag.getAsConstList()));
sal_Int32 nLength = aGrabBag.getLength();
aGrabBag.realloc(nLength + 1);
aGrabBag[nLength] = pProperty;
xSet->setPropertyValue(aGrabBagPropName, uno::makeAny(aGrabBag));
} }
} }
......
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