sw/source/core/doc/DocumentRedlineManager.cxx |   16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

New commits:
commit 65b0510e285e1afb4bccc04521073e7e2f21995f
Author:     Tünde Tóth <[email protected]>
AuthorDate: Thu Oct 21 17:10:47 2021 +0200
Commit:     Tünde Tóth <[email protected]>
CommitDate: Thu Oct 21 17:12:27 2021 +0200

    clean up: sw/source/core/doc/DocumentRedlineManager.cxx
    
    Change-Id: Idf4b478fd20e8114808d10dae06a5fe1ddd38369
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124029
    Tested-by: Tünde Tóth <[email protected]>
    Reviewed-by: Tünde Tóth <[email protected]>

diff --git a/sw/source/core/doc/DocumentRedlineManager.cxx 
b/sw/source/core/doc/DocumentRedlineManager.cxx
index 81747f22246a..4e2925baac2f 100644
--- a/sw/source/core/doc/DocumentRedlineManager.cxx
+++ b/sw/source/core/doc/DocumentRedlineManager.cxx
@@ -2223,21 +2223,23 @@ DocumentRedlineManager::AppendRedline(SwRangeRedline* 
pNewRedl, bool const bCall
                                     bCompress = true;
 
                                     // split redline to store ExtraData per 
paragraphs
-                                    SwRangeRedline* pPar = new SwRangeRedline( 
*pNewRedl );
-                                    pPar->SetStart( aPos );
-                                    pNewRedl->SetEnd( aPos );
+                                    SwRangeRedline* pPar = new 
SwRangeRedline(*pNewRedl);
+                                    pPar->SetStart(aPos);
+                                    pNewRedl->SetEnd(aPos);
 
                                     // get extradata for reset formatting of 
the modified paragraph
-                                    SwRedlineExtraData_FormatColl* pExtraData 
= lcl_CopyStyle(aPos, *pStt, false);
+                                    SwRedlineExtraData_FormatColl* pExtraData
+                                        = lcl_CopyStyle(aPos, *pStt, false);
                                     if (pExtraData)
                                     {
-                                        
std::unique_ptr<SwRedlineExtraData_FormatColl> xRedlineExtraData;
+                                        
std::unique_ptr<SwRedlineExtraData_FormatColl>
+                                            xRedlineExtraData;
                                         if (!bFirst)
                                             pExtraData->SetFormatAll(false);
                                         xRedlineExtraData.reset(pExtraData);
-                                        pPar->SetExtraData( 
xRedlineExtraData.get() );
+                                        
pPar->SetExtraData(xRedlineExtraData.get());
                                     }
-
+                                }
                                 // skip empty redlines without ExtraData
                                 // FIXME: maybe checking pExtraData is 
redundant here
                                 if ( pExtraData || *pPar->Start() != 
*pPar->End() )

Reply via email to