From b1534edf523a405b91ad04c5351735e745ceb7ee Mon Sep 17 00:00:00 2001 From: Swachhand Lokhande Date: Sat, 7 Mar 2015 18:58:49 +0530 Subject: tdf#89592 Using initializer_lists to populate Sequence Change-Id: Idef9dd55eb1719eaf592bc4a86440cbd5aa4fb32 Reviewed-on: https://gerrit.libreoffice.org/14781 Reviewed-by: Miklos Vajna Tested-by: Miklos Vajna --- comphelper/source/container/embeddedobjectcontainer.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'comphelper') diff --git a/comphelper/source/container/embeddedobjectcontainer.cxx b/comphelper/source/container/embeddedobjectcontainer.cxx index 99a968673a7e..1f3f61b3b9d6 100644 --- a/comphelper/source/container/embeddedobjectcontainer.cxx +++ b/comphelper/source/container/embeddedobjectcontainer.cxx @@ -40,6 +40,7 @@ #include #include #include +#include #include #include #include @@ -492,11 +493,10 @@ bool EmbeddedObjectContainer::StoreEmbeddedObject( uno::Sequence < beans::PropertyValue > aSeq; if ( bCopy ) { - uno::Sequence aObjArgs(2); - aObjArgs[0].Name = "SourceShellID"; - aObjArgs[0].Value <<= rSrcShellID; - aObjArgs[1].Name = "DestinationShellID"; - aObjArgs[1].Value <<= rDestShellID; + auto aObjArgs(::comphelper::InitPropertySequence({ + { "SourceShellID", uno::makeAny(rSrcShellID) }, + { "DestinationShellID", uno::makeAny(rDestShellID) } + })); xPersist->storeToEntry(pImpl->mxStorage, rName, aSeq, aObjArgs); } else -- cgit