From c384c7d7ae39495a9cfd55c3d610133f97db1304 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Fri, 11 Jun 2021 16:02:26 +0200 Subject: Simplify Sequence/vector initializations Change-Id: Ib02e25b4600666185cf0f8d0cc8d5c64186789c5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117064 Tested-by: Jenkins Reviewed-by: Julien Nabet --- sot/source/sdstor/ucbstorage.cxx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'sot/source') diff --git a/sot/source/sdstor/ucbstorage.cxx b/sot/source/sdstor/ucbstorage.cxx index 460b3c650fe3..683ceada14b8 100644 --- a/sot/source/sdstor/ucbstorage.cxx +++ b/sot/source/sdstor/ucbstorage.cxx @@ -1939,12 +1939,8 @@ bool UCBStorage_Impl::Insert( ::ucbhelper::Content *pContent ) if ( rProps[ 0 ].Name != "Title" ) continue; - Sequence < OUString > aNames { "Title" }; - Sequence < Any > aValues(1); - aValues[0] <<= m_aName; - Content aNewFolder; - if ( !pContent->insertNewContent( rCurr.Type, aNames, aValues, aNewFolder ) ) + if ( !pContent->insertNewContent( rCurr.Type, { "Title" }, { Any(m_aName) }, aNewFolder ) ) continue; // remove old content, create an "empty" new one and initialize it with the new inserted -- cgit