summaryrefslogtreecommitdiff
path: root/sot
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2021-06-11 16:02:26 +0200
committerJulien Nabet <serval2412@yahoo.fr>2021-06-11 18:55:00 +0200
commitc384c7d7ae39495a9cfd55c3d610133f97db1304 (patch)
tree5eff416f473c8f2f68299b0d1cc8c32e829faba1 /sot
parent8d3e7b2f5836106eac5172d8f4868bb540d652e6 (diff)
Simplify Sequence/vector initializations
Change-Id: Ib02e25b4600666185cf0f8d0cc8d5c64186789c5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117064 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'sot')
-rw-r--r--sot/source/sdstor/ucbstorage.cxx6
1 files changed, 1 insertions, 5 deletions
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