diff options
author | Noel Grandin <noel@peralex.com> | 2016-03-22 10:58:54 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-03-22 11:47:35 +0200 |
commit | 9585c8b8c8d8724cc1bad4a2060c828c15599929 (patch) | |
tree | 170c8fc738aa1ebfdd554b1faa0aac47e2dc4f64 /sw/source/uibase/wrtsh | |
parent | 23391fdb5cffb62006415ad1f4c96b6ed5d50cf8 (diff) |
loplugin:constantparam in sw
Change-Id: I56925a8fd776b3ee787cc26adbaa08c58dd022c0
Diffstat (limited to 'sw/source/uibase/wrtsh')
-rw-r--r-- | sw/source/uibase/wrtsh/delete.cxx | 1 | ||||
-rw-r--r-- | sw/source/uibase/wrtsh/move.cxx | 13 | ||||
-rw-r--r-- | sw/source/uibase/wrtsh/select.cxx | 7 | ||||
-rw-r--r-- | sw/source/uibase/wrtsh/wrtsh1.cxx | 9 | ||||
-rw-r--r-- | sw/source/uibase/wrtsh/wrtsh2.cxx | 1 | ||||
-rw-r--r-- | sw/source/uibase/wrtsh/wrtsh4.cxx | 1 |
6 files changed, 13 insertions, 19 deletions
diff --git a/sw/source/uibase/wrtsh/delete.cxx b/sw/source/uibase/wrtsh/delete.cxx index 340b39a696a8..3375cbb2f33f 100644 --- a/sw/source/uibase/wrtsh/delete.cxx +++ b/sw/source/uibase/wrtsh/delete.cxx @@ -18,7 +18,6 @@ */ #include <wrtsh.hxx> -#include <crsskip.hxx> #include <swcrsr.hxx> #include <editeng/lrspitem.hxx> #include <view.hxx> diff --git a/sw/source/uibase/wrtsh/move.cxx b/sw/source/uibase/wrtsh/move.cxx index baaba962613d..02cbb152fc2a 100644 --- a/sw/source/uibase/wrtsh/move.cxx +++ b/sw/source/uibase/wrtsh/move.cxx @@ -21,7 +21,6 @@ #include <wrtsh.hxx> #include <view.hxx> #include <viewopt.hxx> -#include <crsskip.hxx> /** Always: @@ -128,7 +127,7 @@ bool SwWrtShell::Right( sal_uInt16 nMode, bool bSelect, } } -bool SwWrtShell::Up( bool bSelect, sal_uInt16 nCount, bool bBasicCall ) +bool SwWrtShell::Up( bool bSelect, bool bBasicCall ) { if ( !bSelect && !bBasicCall && IsCursorReadonly() && !GetViewOptions()->IsSelectionInReadonly()) { @@ -139,10 +138,10 @@ bool SwWrtShell::Up( bool bSelect, sal_uInt16 nCount, bool bBasicCall ) } ShellMoveCursor aTmp( this, bSelect ); - return SwCursorShell::Up( nCount ); + return SwCursorShell::Up(); } -bool SwWrtShell::Down( bool bSelect, sal_uInt16 nCount, bool bBasicCall ) +bool SwWrtShell::Down( bool bSelect, bool bBasicCall ) { if ( !bSelect && !bBasicCall && IsCursorReadonly() && !GetViewOptions()->IsSelectionInReadonly()) { @@ -154,7 +153,7 @@ bool SwWrtShell::Down( bool bSelect, sal_uInt16 nCount, bool bBasicCall ) } ShellMoveCursor aTmp( this, bSelect ); - return SwCursorShell::Down( nCount ); + return SwCursorShell::Down(); } bool SwWrtShell::LeftMargin( bool bSelect, bool bBasicCall ) @@ -577,11 +576,11 @@ bool SwWrtShell::GotoPage(sal_uInt16 nPage, bool bRecord) return false; } -bool SwWrtShell::GotoMark( const ::sw::mark::IMark* const pMark, bool bSelect, bool bStart ) +bool SwWrtShell::GotoMark( const ::sw::mark::IMark* const pMark, bool bSelect ) { ShellMoveCursor aTmp( this, bSelect ); SwPosition aPos = *GetCursor()->GetPoint(); - bool bRet = SwCursorShell::GotoMark( pMark, bStart ); + bool bRet = SwCursorShell::GotoMark( pMark, true/*bStart*/ ); if (bRet) m_aNavigationMgr.addEntry(aPos); return bRet; diff --git a/sw/source/uibase/wrtsh/select.cxx b/sw/source/uibase/wrtsh/select.cxx index 35b0b19cc850..823cef83601b 100644 --- a/sw/source/uibase/wrtsh/select.cxx +++ b/sw/source/uibase/wrtsh/select.cxx @@ -36,7 +36,6 @@ #include <swundo.hxx> #include <swevent.hxx> #include <swdtflvr.hxx> -#include <crsskip.hxx> #include <doc.hxx> #include <wordcountdialog.hxx> #include <memory> @@ -70,7 +69,7 @@ bool SwWrtShell::SelNearestWrd() return SelWrd(); } -bool SwWrtShell::SelWrd(const Point *pPt, bool ) +bool SwWrtShell::SelWrd(const Point *pPt ) { bool bRet; { @@ -88,7 +87,7 @@ bool SwWrtShell::SelWrd(const Point *pPt, bool ) return bRet; } -void SwWrtShell::SelSentence(const Point *pPt, bool ) +void SwWrtShell::SelSentence(const Point *pPt ) { { SwMvContext aMvContext(this); @@ -104,7 +103,7 @@ void SwWrtShell::SelSentence(const Point *pPt, bool ) m_bSelWrd = false; // disable SelWord, otherwise no SelLine goes on } -void SwWrtShell::SelPara(const Point *pPt, bool ) +void SwWrtShell::SelPara(const Point *pPt ) { { SwMvContext aMvContext(this); diff --git a/sw/source/uibase/wrtsh/wrtsh1.cxx b/sw/source/uibase/wrtsh/wrtsh1.cxx index 0c89f8c535e6..2c87f3f52144 100644 --- a/sw/source/uibase/wrtsh/wrtsh1.cxx +++ b/sw/source/uibase/wrtsh/wrtsh1.cxx @@ -80,7 +80,6 @@ #include <caption.hxx> #include <viscrs.hxx> #include <swdtflvr.hxx> -#include <crsskip.hxx> #include <doc.hxx> #include <IDocumentSettingAccess.hxx> #include <wrtsh.hrc> @@ -339,7 +338,7 @@ void SwWrtShell::Insert( const OUString &rPath, const OUString &rFilter, // if no object is transferred, then one will be created. void SwWrtShell::InsertObject( const svt::EmbeddedObjectRef& xRef, SvGlobalName *pName, - bool bActivate, sal_uInt16 nSlotId ) + sal_uInt16 nSlotId ) { ResetCursorStack(); if( !CanInsert() ) @@ -401,7 +400,7 @@ void SwWrtShell::InsertObject( const svt::EmbeddedObjectRef& xRef, SvGlobalName if ( xObj.is() ) { - if( InsertOleObject( xObj ) && bActivate && bDoVerb ) + if( InsertOleObject( xObj ) && bDoVerb ) { SfxInPlaceClient* pClient = GetView().FindIPClient( xObj.GetObject(), &GetView().GetEditWin() ); if ( !pClient ) @@ -947,7 +946,7 @@ void SwWrtShell::InsertFootnote(const OUString &rStr, bool bEndNote, bool bEdit // - of deleting selected content; // - of reset of the Cursorstack if necessary. -void SwWrtShell::SplitNode( bool bAutoFormat, bool bCheckTableStart ) +void SwWrtShell::SplitNode( bool bAutoFormat ) { ResetCursorStack(); if( CanInsert() ) @@ -962,7 +961,7 @@ void SwWrtShell::SplitNode( bool bAutoFormat, bool bCheckTableStart ) DelRight(); } - SwFEShell::SplitNode( bAutoFormat, bCheckTableStart ); + SwFEShell::SplitNode( bAutoFormat ); if( bHasSel ) EndUndo( UNDO_INSERT ); } diff --git a/sw/source/uibase/wrtsh/wrtsh2.cxx b/sw/source/uibase/wrtsh/wrtsh2.cxx index 0c50310dae6a..700c30284071 100644 --- a/sw/source/uibase/wrtsh/wrtsh2.cxx +++ b/sw/source/uibase/wrtsh/wrtsh2.cxx @@ -52,7 +52,6 @@ #include <section.hxx> #include <navicont.hxx> #include <navipi.hxx> -#include <crsskip.hxx> #include <txtinet.hxx> #include <cmdid.h> #include <wrtsh.hrc> diff --git a/sw/source/uibase/wrtsh/wrtsh4.cxx b/sw/source/uibase/wrtsh/wrtsh4.cxx index 49e7353f6aa3..60db3754d6a2 100644 --- a/sw/source/uibase/wrtsh/wrtsh4.cxx +++ b/sw/source/uibase/wrtsh/wrtsh4.cxx @@ -18,7 +18,6 @@ */ #include <wrtsh.hxx> -#include <crsskip.hxx> // Private methods, which move the cursor over search. // The removal of the selection must be made on the level above. |