summaryrefslogtreecommitdiff
path: root/sw/source/uibase/dochdl
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-09-07 11:36:20 +0200
committerNoel Grandin <noel@peralex.com>2016-09-07 11:36:20 +0200
commit15da84c9c3a5323075c5e97ccd595a130f54cf20 (patch)
treea44ab237c892ccfbbddabeac7d47a7bf2a977553 /sw/source/uibase/dochdl
parentc158c00489d35af7f5f9278b8ee545678d6a42e5 (diff)
loplugin:constantparam in sw
Change-Id: I16badc615e98202668b1b201035b5137cb94c10c
Diffstat (limited to 'sw/source/uibase/dochdl')
-rw-r--r--sw/source/uibase/dochdl/swdtflvr.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/sw/source/uibase/dochdl/swdtflvr.cxx b/sw/source/uibase/dochdl/swdtflvr.cxx
index 8341af327452..596ad57c7bff 100644
--- a/sw/source/uibase/dochdl/swdtflvr.cxx
+++ b/sw/source/uibase/dochdl/swdtflvr.cxx
@@ -190,11 +190,10 @@ class SwTrnsfrActionAndUndo
SwUndoId eUndoId;
public:
SwTrnsfrActionAndUndo( SwWrtShell *pS, SwUndoId nId,
- const SwRewriter * pRewriter = nullptr,
bool bDelSel = false)
: pSh( pS ), eUndoId( nId )
{
- pSh->StartUndo( eUndoId, pRewriter );
+ pSh->StartUndo( eUndoId );
if( bDelSel )
pSh->DelRight();
pSh->StartAllAction();
@@ -1243,8 +1242,7 @@ bool SwTransferable::PasteData( TransferableDataHelper& rData,
if( bDelSel )
// #i34830#
- pAction.reset(new SwTrnsfrActionAndUndo( &rSh, UNDO_PASTE_CLIPBOARD, nullptr,
- true ));
+ pAction.reset(new SwTrnsfrActionAndUndo( &rSh, UNDO_PASTE_CLIPBOARD, true ));
}
SwTransferable *pTrans=nullptr, *pTunneledTrans=GetSwTransferable( rData );