summaryrefslogtreecommitdiff
path: root/svx/source/gallery2/galmisc.cxx
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2021-10-29 10:13:01 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2021-10-31 15:49:07 +0100
commit5b54ba7084d6b575814af26be30cf5af5dfca12c (patch)
tree38f1fd7bfca54886c34f6bcbdd9220d3f1a90f13 /svx/source/gallery2/galmisc.cxx
parent3d469248ada8632a9d86efc80f2ac97dcb617c27 (diff)
Prepare for removal of non-const operator[] from Sequence in svx
Change-Id: Ib5fda9469f9a1987cf9071c0e228c582cfb3dfa1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124397 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'svx/source/gallery2/galmisc.cxx')
-rw-r--r--svx/source/gallery2/galmisc.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/svx/source/gallery2/galmisc.cxx b/svx/source/gallery2/galmisc.cxx
index 7f7ce9980255..9713b82a109e 100644
--- a/svx/source/gallery2/galmisc.cxx
+++ b/svx/source/gallery2/galmisc.cxx
@@ -238,11 +238,8 @@ bool CreateDir( const INetURLObject& rURL )
INetURLObject aParentURL( rURL );
aParentURL.removeSegment();
::ucbhelper::Content aParent( aParentURL.GetMainURL( INetURLObject::DecodeMechanism::NONE ), aCmdEnv, comphelper::getProcessComponentContext() );
- uno::Sequence< OUString > aProps( 1 );
- uno::Sequence< uno::Any > aValues( 1 );
-
- aProps[0] = "Title";
- aValues[0] <<= rURL.GetLastName();
+ uno::Sequence< OUString > aProps{ "Title" };
+ uno::Sequence< uno::Any > aValues{ uno::Any(rURL.GetLastName()) };
::ucbhelper::Content aContent( rURL.GetMainURL( INetURLObject::DecodeMechanism::NONE ), aCmdEnv, comphelper::getProcessComponentContext() );
bRet = aParent.insertNewContent( "application/vnd.sun.staroffice.fsys-folder", aProps, aValues, aContent );