summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-01-10 16:47:42 +0000
committerCaolán McNamara <caolanm@redhat.com>2021-01-11 10:14:05 +0100
commit5adc93a9a9426ef79054751be2904896f787a8a2 (patch)
tree050146192727f13671385a54e36e0c48c3941734
parentdfc4c3ed17bf8e4ad775b9092f235ec35e6c9072 (diff)
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@redhat.com>
-rw-r--r--sw/source/uibase/docvw/PageBreakWin.cxx6
1 files 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<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 );