editeng/source/outliner/outliner.cxx |    7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

New commits:
commit 7a302c90274cbbf77713dc1b43ab8bcc8af4f863
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Mon May 19 10:03:53 2025 +0100
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Mon May 19 16:03:29 2025 +0200

    create these in member init list
    
    Change-Id: Ib5296d10f7efd113950a340d1fb2bd9ecd85d931
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/185519
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>

diff --git a/editeng/source/outliner/outliner.cxx 
b/editeng/source/outliner/outliner.cxx
index b4c566b0ee10..bef30c2ecb01 100644
--- a/editeng/source/outliner/outliner.cxx
+++ b/editeng/source/outliner/outliner.cxx
@@ -1226,20 +1226,19 @@ bool Outliner::ImpCanDeleteSelectedPages( OutlinerView* 
pCurView )
 }
 
 Outliner::Outliner(SfxItemPool* pPool, OutlinerMode nMode)
-    : mnFirstSelPage(0)
+    : pEditEngine(new OutlinerEditEng(this, pPool))
+    , pParaList(new ParagraphList)
+    , mnFirstSelPage(0)
     , nDepthChangedHdlPrevDepth(0)
     , nMaxDepth(9)
     , bFirstParaIsEmpty(true)
     , nBlockInsCallback(0)
     , bPasting(false)
 {
-
-    pParaList.reset( new ParagraphList );
     pParaList->SetVisibleStateChangedHdl( LINK( this, Outliner, 
ParaVisibleStateChangedHdl ) );
     std::unique_ptr<Paragraph> pPara(new Paragraph( 0 ));
     pParaList->Append(std::move(pPara));
 
-    pEditEngine.reset( new OutlinerEditEng( this, pPool ) );
     pEditEngine->SetBeginMovingParagraphsHdl( LINK( this, Outliner, 
BeginMovingParagraphsHdl ) );
     pEditEngine->SetEndMovingParagraphsHdl( LINK( this, Outliner, 
EndMovingParagraphsHdl ) );
     pEditEngine->SetBeginPasteOrDropHdl( LINK( this, Outliner, 
BeginPasteOrDropHdl ) );

Reply via email to