From 5adc93a9a9426ef79054751be2904896f787a8a2 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sun, 10 Jan 2021 16:47:42 +0000 Subject: cid#1371301 avoid Missing move assignment operator warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I93c849edbc171baba65cc44422fd396372c6f694 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109058 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- sw/source/uibase/docvw/PageBreakWin.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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(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 ); -- cgit