diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-04-04 11:57:23 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-04-05 06:40:10 +0000 |
commit | 3d6c84f2d9683b23c14fa5bf50ca4425cf4ceb04 (patch) | |
tree | bc18d71a94b1a9015d45155ad79179e61e6aa3c0 /sw/source/uibase/dochdl | |
parent | cedbc4031f26ea13b188a4ecc5b90cc9646095fb (diff) |
loplugin:constantparam
Change-Id: I1996319e5b664dff95f7a9b2346aea6092d333ec
Reviewed-on: https://gerrit.libreoffice.org/36070
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase/dochdl')
-rw-r--r-- | sw/source/uibase/dochdl/swdtflvr.cxx | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/sw/source/uibase/dochdl/swdtflvr.cxx b/sw/source/uibase/dochdl/swdtflvr.cxx index 83bfd70f4e43..10d900654212 100644 --- a/sw/source/uibase/dochdl/swdtflvr.cxx +++ b/sw/source/uibase/dochdl/swdtflvr.cxx @@ -183,13 +183,11 @@ public: class SwTrnsfrActionAndUndo { SwWrtShell *pSh; - SwUndoId eUndoId; public: - SwTrnsfrActionAndUndo( SwWrtShell *pS, SwUndoId nId, - bool bDelSel = false) - : pSh( pS ), eUndoId( nId ) + SwTrnsfrActionAndUndo( SwWrtShell *pS, bool bDelSel = false) + : pSh( pS ) { - pSh->StartUndo( eUndoId ); + pSh->StartUndo( SwUndoId::PASTE_CLIPBOARD ); if( bDelSel ) pSh->DelRight(); pSh->StartAllAction(); @@ -1250,7 +1248,7 @@ bool SwTransferable::PasteData( TransferableDataHelper& rData, if( bDelSel ) // #i34830# - pAction.reset(new SwTrnsfrActionAndUndo( &rSh, SwUndoId::PASTE_CLIPBOARD, true )); + pAction.reset(new SwTrnsfrActionAndUndo( &rSh, true )); } SwTransferable *pTrans=nullptr, *pTunneledTrans=GetSwTransferable( rData ); @@ -1295,7 +1293,7 @@ bool SwTransferable::PasteData( TransferableDataHelper& rData, { if( !pAction ) { - pAction.reset(new SwTrnsfrActionAndUndo( &rSh, SwUndoId::PASTE_CLIPBOARD)); + pAction.reset(new SwTrnsfrActionAndUndo( &rSh )); } // in Drag&Drop MessageBoxes must not be showed @@ -3247,7 +3245,7 @@ bool SwTransferable::PrivatePaste( SwWrtShell& rShell ) const int nSelection = rShell.GetSelectionType(); - SwTrnsfrActionAndUndo aAction( &rShell, SwUndoId::PASTE_CLIPBOARD); + SwTrnsfrActionAndUndo aAction( &rShell ); bool bKillPaMs = false; |