[Libreoffice-commits] core.git: sw/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Mon Jan 11 09:14:48 UTC 2021


 sw/source/uibase/docvw/PageBreakWin.cxx |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

New commits:
commit 5adc93a9a9426ef79054751be2904896f787a8a2
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sun Jan 10 16:47:42 2021 +0000
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Mon Jan 11 10:14:05 2021 +0100

    cid#1371301 avoid Missing move assignment operator warning
    
    Change-Id: I93c849edbc171baba65cc44422fd396372c6f694
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109058
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sw/source/uibase/docvw/PageBreakWin.cxx b/sw/source/uibase/docvw/PageBreakWin.cxx
index 34db213d8e15..535f02b85a25 100644
--- a/sw/source/uibase/docvw/PageBreakWin.cxx
+++ b/sw/source/uibase/docvw/PageBreakWin.cxx
@@ -327,9 +327,8 @@ void SwPageBreakWin::execute(std::string_view rIdent)
         if ( eBreak == SvxBreak::PageBefore )
             aSet.Put( SvxFormatBreakItem( SvxBreak::NONE, RES_BREAK ) );
 
-        SwPaM aPaM( rNd );
         rNd.GetDoc().getIDocumentContentOperations().InsertItemSet(
-            aPaM, aSet, SetAttrMode::DEFAULT, GetPageFrame()->getRootFrame());
+            SwPaM(rNd), aSet, SetAttrMode::DEFAULT, GetPageFrame()->getRootFrame());
 
         // This break could be from the previous paragraph, if it has a PageAfter break.
         if ( ePrevBreak == SvxBreak::PageAfter )
@@ -339,9 +338,8 @@ void SwPageBreakWin::execute(std::string_view rIdent)
                 : *static_cast<SwNoTextFrame*>(pPrevCnt)->GetNode();
             aSet.ClearItem();
             aSet.Put( SvxFormatBreakItem( SvxBreak::NONE, RES_BREAK ) );
-            aPaM = SwPaM( rPrevNd );
             rPrevNd.GetDoc().getIDocumentContentOperations().InsertItemSet(
-                aPaM, aSet, SetAttrMode::DEFAULT, pPrevCnt->getRootFrame());
+                SwPaM(rPrevNd), aSet, SetAttrMode::DEFAULT, pPrevCnt->getRootFrame());
         }
 
         rNd.GetDoc().GetIDocumentUndoRedo( ).EndUndo( SwUndoId::UI_DELETE_PAGE_BREAK, nullptr );


More information about the Libreoffice-commits mailing list