sfx2/source/doc/doctempl.cxx |   14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

New commits:
commit fadc0932d7959a872152905d4ec27cd85c3aa19d
Author:     Julien Nabet <[email protected]>
AuthorDate: Sun Feb 6 10:49:06 2022 +0100
Commit:     Julien Nabet <[email protected]>
CommitDate: Sun Feb 6 12:30:49 2022 +0100

    Simplify sequence in sfx2
    
    Change-Id: If7a22560280eae15dc0c82e3a4521b2c28d65e9c
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129567
    Tested-by: Jenkins
    Reviewed-by: Julien Nabet <[email protected]>

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& ) {}
 

Reply via email to