diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2022-02-06 10:49:06 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2022-02-06 12:30:49 +0100 |
commit | fadc0932d7959a872152905d4ec27cd85c3aa19d (patch) | |
tree | 73bc1eb723bf5889835d2decd12d5861b898e058 /sfx2 | |
parent | 8a9b870a40c41c7cae6e43452b593804fa17f831 (diff) |
Simplify sequence in sfx2
Change-Id: If7a22560280eae15dc0c82e3a4521b2c28d65e9c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129567
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/doc/doctempl.cxx | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/sfx2/source/doc/doctempl.cxx b/sfx2/source/doc/doctempl.cxx index d884024227d5..d24260a0ddbf 100644 --- a/sfx2/source/doc/doctempl.cxx +++ b/sfx2/source/doc/doctempl.cxx @@ -1517,10 +1517,16 @@ void SfxDocTemplate_Impl::CreateFromHierarchy( Content &rTemplRoot ) try { - Sequence< NumberedSortingInfo > aSortingInfo(1); - aSortingInfo.getArray()->ColumnIndex = 1; - aSortingInfo.getArray()->Ascending = true; - xResultSet = rTemplRoot.createSortedCursor( aProps, aSortingInfo, m_rCompareFactory, INCLUDE_FOLDERS_ONLY ); + xResultSet = rTemplRoot.createSortedCursor( + aProps, + { // Sequence + { // NumberedSortingInfo + /* ColumnIndex */ 1, /* Ascending */ true + } + }, + m_rCompareFactory, + INCLUDE_FOLDERS_ONLY + ); } catch ( Exception& ) {} |