summaryrefslogtreecommitdiff
path: root/sot
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2021-06-09 23:17:41 +0200
committerJulien Nabet <serval2412@yahoo.fr>2021-06-10 08:30:12 +0200
commit159030991c70fc3c4018ef28abf1814902a0aebb (patch)
tree02f3b436f205a71e32b3fbaa9c4ab21d2ab5f830 /sot
parent36db408b9027da01464927e5853950435596ae05 (diff)
Simplify Sequences initializations (sot/stock/svl/svtools/svx)
Change-Id: Iec21851d69f4a8d5f557e9ed2d30e5f680cd62c2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116943 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'sot')
-rw-r--r--sot/source/sdstor/ucbstorage.cxx10
1 files changed, 2 insertions, 8 deletions
diff --git a/sot/source/sdstor/ucbstorage.cxx b/sot/source/sdstor/ucbstorage.cxx
index 162748e5b5d2..460b3c650fe3 100644
--- a/sot/source/sdstor/ucbstorage.cxx
+++ b/sot/source/sdstor/ucbstorage.cxx
@@ -1670,20 +1670,14 @@ void UCBStorage_Impl::ReadContent()
m_bListCreated = true;
- // create cursor for access to children
- Sequence< OUString > aProps(4);
- aProps[0] = "Title";
- aProps[1] = "IsFolder";
- aProps[2] = "MediaType";
- aProps[3] = "Size";
-
try
{
GetContent();
if ( !m_pContent )
return;
- Reference< XResultSet > xResultSet = m_pContent->createCursor( aProps, ::ucbhelper::INCLUDE_FOLDERS_AND_DOCUMENTS );
+ // create cursor for access to children
+ Reference< XResultSet > xResultSet = m_pContent->createCursor( { "Title", "IsFolder", "MediaType", "Size" }, ::ucbhelper::INCLUDE_FOLDERS_AND_DOCUMENTS );
Reference< XRow > xRow( xResultSet, UNO_QUERY );
if ( xResultSet.is() )
{