diff options
author | Noel Grandin <noel@peralex.com> | 2016-03-02 11:22:45 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-03-02 11:23:11 +0200 |
commit | e09df5a70a57c06b2be846ca673dcc8b4f003918 (patch) | |
tree | 6bfb7a4b5bc257fe18582d1cc4eee25898b13a0a /sc/source/ui/inc | |
parent | da83d2899ec20a6cd181c7a0d5f465bd11088a5a (diff) |
loplugin:unuseddefaultparams in sc (part1)
Change-Id: Ie7c23bfee7cb6c73e455a47801f7eb1b481a8cf0
Diffstat (limited to 'sc/source/ui/inc')
-rw-r--r-- | sc/source/ui/inc/TableFillingAndNavigationTools.hxx | 2 | ||||
-rw-r--r-- | sc/source/ui/inc/anyrefdg.hxx | 2 | ||||
-rw-r--r-- | sc/source/ui/inc/cbutton.hxx | 5 | ||||
-rw-r--r-- | sc/source/ui/inc/csvcontrol.hxx | 5 | ||||
-rw-r--r-- | sc/source/ui/inc/dbdocfun.hxx | 3 | ||||
-rw-r--r-- | sc/source/ui/inc/dbfunc.hxx | 11 | ||||
-rw-r--r-- | sc/source/ui/inc/docsh.hxx | 2 | ||||
-rw-r--r-- | sc/source/ui/inc/drawsh.hxx | 6 | ||||
-rw-r--r-- | sc/source/ui/inc/drawview.hxx | 2 | ||||
-rw-r--r-- | sc/source/ui/inc/futext.hxx | 2 | ||||
-rw-r--r-- | sc/source/ui/inc/output.hxx | 2 | ||||
-rw-r--r-- | sc/source/ui/inc/reffact.hxx | 2 | ||||
-rw-r--r-- | sc/source/ui/inc/tabview.hxx | 3 | ||||
-rw-r--r-- | sc/source/ui/inc/viewfunc.hxx | 30 |
14 files changed, 35 insertions, 42 deletions
diff --git a/sc/source/ui/inc/TableFillingAndNavigationTools.hxx b/sc/source/ui/inc/TableFillingAndNavigationTools.hxx index d908eecac99a..e1a1de7d5059 100644 --- a/sc/source/ui/inc/TableFillingAndNavigationTools.hxx +++ b/sc/source/ui/inc/TableFillingAndNavigationTools.hxx @@ -46,7 +46,7 @@ public: void autoReplaceUses3D(bool bUse3D = true) { mbUse3D = bUse3D; } void applyRange(const OUString& aVariable, const ScRange& aRange, bool b3D = true); - void applyRangeList(const OUString& aVariable, const ScRangeList& aRangeList, bool b3D = true); + void applyRangeList(const OUString& aVariable, const ScRangeList& aRangeList); void applyAddress(const OUString& aVariable, const ScAddress& aAddress, bool b3D = true); void applyString(const OUString& aVariable, const OUString& aValue); void applyNumber(const OUString& aVariable, sal_Int32 aValue); diff --git a/sc/source/ui/inc/anyrefdg.hxx b/sc/source/ui/inc/anyrefdg.hxx index 637a5d60ae4d..d84d00043da4 100644 --- a/sc/source/ui/inc/anyrefdg.hxx +++ b/sc/source/ui/inc/anyrefdg.hxx @@ -91,7 +91,7 @@ public: inline void SetWindow(vcl::Window* _pWindow) { m_pWindow = _pWindow; } void DoClose( sal_uInt16 nId ); static void SetDispatcherLock( bool bLock ); - static void EnableSpreadsheets( bool bFlag = true, bool bChildren = true ); + static void EnableSpreadsheets( bool bFlag = true ); static void ViewShellChanged(); static void enableInput(bool _bInput); diff --git a/sc/source/ui/inc/cbutton.hxx b/sc/source/ui/inc/cbutton.hxx index 45c6a13099ba..49d58536b9e6 100644 --- a/sc/source/ui/inc/cbutton.hxx +++ b/sc/source/ui/inc/cbutton.hxx @@ -38,9 +38,8 @@ public: const Size& rSize, bool bState, bool bBtnIn = false ); - void Draw( bool bState, - bool bBtnIn = false ) - { Draw( aBtnPos, aBtnSize, bState, bBtnIn ); } + void Draw( bool bState ) + { Draw( aBtnPos, aBtnSize, bState ); } void SetOptSizePixel(); diff --git a/sc/source/ui/inc/csvcontrol.hxx b/sc/source/ui/inc/csvcontrol.hxx index eb7a7fbefb6b..f645a6148553 100644 --- a/sc/source/ui/inc/csvcontrol.hxx +++ b/sc/source/ui/inc/csvcontrol.hxx @@ -273,9 +273,8 @@ public: void Repaint( bool bInvalidate = false ); /** Increases no-repaint counter (controls do not repaint until the last EnableRepaint()). */ void DisableRepaint(); - /** Decreases no-repaint counter and repaints if counter reaches 0. - @param bInvalidate true = invalidates graphics of this control (not all). */ - void EnableRepaint( bool bInvalidate = false ); + /** Decreases no-repaint counter and repaints if counter reaches 0. */ + void EnableRepaint(); /** Returns true, if controls will not repaint. */ inline bool IsNoRepaint() const { return mrData.mnNoRepaint > 0; } diff --git a/sc/source/ui/inc/dbdocfun.hxx b/sc/source/ui/inc/dbdocfun.hxx index fc58a571222d..f8e87b4d7224 100644 --- a/sc/source/ui/inc/dbdocfun.hxx +++ b/sc/source/ui/inc/dbdocfun.hxx @@ -62,8 +62,7 @@ public: bool DoImport( SCTAB nTab, const ScImportParam& rParam, const svx::ODataAccessDescriptor* pDescriptor, // used for selection an existing ResultSet - bool bRecord, - bool bAddrInsert = false ); + bool bRecord ); bool DoImportUno( const ScAddress& rPos, const css::uno::Sequence<css::beans::PropertyValue>& aArgs ); diff --git a/sc/source/ui/inc/dbfunc.hxx b/sc/source/ui/inc/dbfunc.hxx index d8b2be5890a9..6df004f9bb27 100644 --- a/sc/source/ui/inc/dbfunc.hxx +++ b/sc/source/ui/inc/dbfunc.hxx @@ -47,8 +47,7 @@ public: // only UISort repeat the partial results if necessary - void UISort( const ScSortParam& rSortParam, - bool bRecord = true ); + void UISort( const ScSortParam& rSortParam ); void Sort( const ScSortParam& rSortParam, bool bRecord = true, bool bPaint = true ); @@ -62,7 +61,7 @@ public: void RepeatDB( bool bRecord = true ); - bool ImportData( const ScImportParam& rParam, bool bRecord = true ); + bool ImportData( const ScImportParam& rParam ); void GotoDBArea( const OUString& rDBName ); @@ -70,11 +69,11 @@ public: ScDBData* GetDBData( bool bMarkArea = true, ScGetDBMode eMode = SC_DB_MAKE, ScGetDBSelection eSel = SC_DBSEL_KEEP); ScDBData* GetAnonymousDBData(); - void Consolidate( const ScConsolidateParam& rParam, bool bRecord = true ); + void Consolidate( const ScConsolidateParam& rParam ); bool MakePivotTable( const ScDPSaveData& rData, const ScRange& rDest, bool bNewTable, - const ScDPObject& rSource, bool bApi = false ); + const ScDPObject& rSource ); void DeletePivotTable(); void RecalcPivotTable(); @@ -100,7 +99,7 @@ public: void RemoveAllOutlines( bool bRecord = true ); void TestRemoveOutline( bool& rCol, bool& rRow ); - void AutoOutline( bool bRecord = true ); + void AutoOutline(); void SelectLevel( bool bColumns, sal_uInt16 nLevel, bool bRecord = true, bool bPaint = true ); diff --git a/sc/source/ui/inc/docsh.hxx b/sc/source/ui/inc/docsh.hxx index c1fbcd71c52c..3545654c51ce 100644 --- a/sc/source/ui/inc/docsh.hxx +++ b/sc/source/ui/inc/docsh.hxx @@ -331,7 +331,7 @@ public: SCCOL nEndCol, SCROW nEndRow, SCTAB nEndTab ); void UpdatePaintExt( sal_uInt16& rExtFlags, const ScRange& rRange ); - void SetDocumentModified( bool bIsModified = true ); + void SetDocumentModified(); void SetDrawModified( bool bIsModified = true ); void LockPaint(); diff --git a/sc/source/ui/inc/drawsh.hxx b/sc/source/ui/inc/drawsh.hxx index f13781ec2337..e6beb613e84b 100644 --- a/sc/source/ui/inc/drawsh.hxx +++ b/sc/source/ui/inc/drawsh.hxx @@ -78,9 +78,9 @@ public: void StateFormatPaintbrush(SfxItemSet& rSet); void ExecuteMacroAssign( SdrObject* pObj, vcl::Window* pWin ); - void ExecuteLineDlg( SfxRequest& rReq, sal_uInt16 nTabPage = 0xffff ); - void ExecuteAreaDlg( SfxRequest& rReq, sal_uInt16 nTabPage = 0xffff ); - void ExecuteTextAttrDlg( SfxRequest& rReq, sal_uInt16 nTabPage = 0xffff ); + void ExecuteLineDlg( SfxRequest& rReq ); + void ExecuteAreaDlg( SfxRequest& rReq ); + void ExecuteTextAttrDlg( SfxRequest& rReq ); ScDrawView* GetDrawView(); diff --git a/sc/source/ui/inc/drawview.hxx b/sc/source/ui/inc/drawview.hxx index 9548292786af..99280f31eeb6 100644 --- a/sc/source/ui/inc/drawview.hxx +++ b/sc/source/ui/inc/drawview.hxx @@ -114,7 +114,7 @@ public: bool HasMarkedControl() const; bool HasMarkedInternal() const; - void InsertObjectSafe(SdrObject* pObj, SdrPageView& rPV, SdrInsertFlags nOptions=SdrInsertFlags::NONE); + void InsertObjectSafe(SdrObject* pObj, SdrPageView& rPV); /** Returns the selected object, if it is the caption object of a cell note. @param ppCaptData (out-param) If not null, returns the pointer to the caption object data. */ diff --git a/sc/source/ui/inc/futext.hxx b/sc/source/ui/inc/futext.hxx index bb9118207752..559eb4cc2369 100644 --- a/sc/source/ui/inc/futext.hxx +++ b/sc/source/ui/inc/futext.hxx @@ -50,7 +50,7 @@ public: void SetInEditMode( SdrObject* pObj = nullptr, const Point* pMousePixel = nullptr, bool bCursorToEnd = false, const KeyEvent* pInitialKey = nullptr ); - void StopEditMode(bool bTextDirection = false); + void StopEditMode(); // Create default drawing objects via keyboard virtual SdrObject* CreateDefaultObject(const sal_uInt16 nID, const Rectangle& rRectangle) override; diff --git a/sc/source/ui/inc/output.hxx b/sc/source/ui/inc/output.hxx index 601a90bfa24d..73434b4cfcfa 100644 --- a/sc/source/ui/inc/output.hxx +++ b/sc/source/ui/inc/output.hxx @@ -293,7 +293,7 @@ public: long GetScrW() const { return nScrW; } long GetScrH() const { return nScrH; } - void SetSnapPixel( bool bSet = true ); + void SetSnapPixel(); void DrawGrid(vcl::RenderContext& rRenderContext, bool bGrid, bool bPage); void DrawStrings( bool bPixelToLogic = false ); diff --git a/sc/source/ui/inc/reffact.hxx b/sc/source/ui/inc/reffact.hxx index 142decf94174..d106b37d3d02 100644 --- a/sc/source/ui/inc/reffact.hxx +++ b/sc/source/ui/inc/reffact.hxx @@ -166,7 +166,7 @@ class ScSimpleRefDlgWrapper: public SfxChildWindow SFX_DECL_CHILDWINDOW_WITHID(Class); - static void SetDefaultPosSize(Point aPos, Size aSize, bool bSet = true); + static void SetDefaultPosSize(Point aPos, Size aSize); void SetRefString(const OUString& rStr); void SetCloseHdl( const Link<const OUString*,void>& rLink ); void SetUnoLinks( const Link<const OUString&,void>& rDone, const Link<const OUString&,void>& rAbort, diff --git a/sc/source/ui/inc/tabview.hxx b/sc/source/ui/inc/tabview.hxx index 5e7d9c792fc6..cb6c65b3932e 100644 --- a/sc/source/ui/inc/tabview.hxx +++ b/sc/source/ui/inc/tabview.hxx @@ -308,8 +308,7 @@ public: static void UpdateInputLine(); - void InitRefMode( SCCOL nCurX, SCROW nCurY, SCTAB nCurZ, ScRefType eType, - bool bPaint = true ); + void InitRefMode( SCCOL nCurX, SCROW nCurY, SCTAB nCurZ, ScRefType eType ); void DoneRefMode( bool bContinue = false ); void UpdateRef( SCCOL nCurX, SCROW nCurY, SCTAB nCurZ ); void StopRefMode(); diff --git a/sc/source/ui/inc/viewfunc.hxx b/sc/source/ui/inc/viewfunc.hxx index a2fb0a78db5c..61f377568369 100644 --- a/sc/source/ui/inc/viewfunc.hxx +++ b/sc/source/ui/inc/viewfunc.hxx @@ -157,8 +157,7 @@ public: bool InsertName( const OUString& rName, const OUString& rSymbol, const OUString& rType ); - void ApplyAttributes( const SfxItemSet* pDialogSet, const SfxItemSet* pOldSet, - bool bRecord = true ); + void ApplyAttributes( const SfxItemSet* pDialogSet, const SfxItemSet* pOldSet ); void ApplyAttr( const SfxPoolItem& rAttrItem ); void ApplySelectionPattern( const ScPatternAttr& rAttr, bool bRecord = true, @@ -171,8 +170,7 @@ public: const SfxStyleSheet* GetStyleSheetFromMarked(); - void SetStyleSheetToMarked( SfxStyleSheet* pStyleSheet, - bool bRecord = true ); + void SetStyleSheetToMarked( SfxStyleSheet* pStyleSheet ); void RemoveStyleSheetInUse( const SfxStyleSheetBase* pStyleSheet ); void UpdateStyleSheetInUse( const SfxStyleSheetBase* pStyleSheet ); @@ -189,21 +187,21 @@ public: void Protect( SCTAB nTab, const OUString& rPassword ); bool Unprotect( SCTAB nTab, const OUString& rPassword ); - void DeleteCells( DelCellCmd eCmd, bool bRecord = true ); + void DeleteCells( DelCellCmd eCmd ); bool InsertCells( InsCellCmd eCmd, bool bRecord = true, bool bPartOfPaste = false ); void DeleteMulti( bool bRows, bool bRecord = true ); - void DeleteContents( InsertDeleteFlags nFlags, bool bRecord = true ); + void DeleteContents( InsertDeleteFlags nFlags ); void SetWidthOrHeight( bool bWidth, const std::vector<sc::ColRowSpan>& rRanges, ScSizeMode eMode, sal_uInt16 nSizeTwips, bool bRecord = true, bool bPaint = true, ScMarkData* pMarkData = nullptr ); void SetMarkedWidthOrHeight( bool bWidth, ScSizeMode eMode, sal_uInt16 nSizeTwips, - bool bRecord = true, bool bPaint = true ); + bool bRecord = true ); bool AdjustBlockHeight( bool bPaint = true, ScMarkData* pMarkData = nullptr ); - bool AdjustRowHeight( SCROW nStartRow, SCROW nEndRow, bool bPaint = true ); + bool AdjustRowHeight( SCROW nStartRow, SCROW nEndRow ); void ModifyCellSize( ScDirection eDir, bool bOptimal ); @@ -225,20 +223,20 @@ public: bool TestRemoveMerge(); bool MergeCells( bool bApi, bool& rDoContents, bool bRecord = true, bool bCenter = false ); - bool RemoveMerge( bool bRecord = true ); + bool RemoveMerge(); - void FillSimple( FillDir eDir, bool bRecord = true ); + void FillSimple( FillDir eDir ); void FillSeries( FillDir eDir, FillCmd eCmd, FillDateCmd eDateCmd, - double fStart, double fStep, double fMax, bool bRecord = true ); + double fStart, double fStep, double fMax ); void FillAuto( FillDir eDir, SCCOL nStartCol, SCROW nStartRow, - SCCOL nEndCol, SCROW nEndRow, sal_uLong nCount, bool bRecord = true ); + SCCOL nEndCol, SCROW nEndRow, sal_uLong nCount ); void FillCrossDblClick(); void ConvertFormulaToValue(); void TransliterateText( sal_Int32 nType ); ScAutoFormatData* CreateAutoFormatData(); - void AutoFormat( sal_uInt16 nFormatNo, bool bRecord = true ); + void AutoFormat( sal_uInt16 nFormatNo ); bool SearchAndReplace( const SvxSearchItem* pSearchItem, bool bAddUndo, bool bIsApi ); @@ -286,10 +284,10 @@ public: void SetNoteText( const ScAddress& rPos, const OUString& rNoteText ); void ReplaceNote( const ScAddress& rPos, const OUString& rNoteText, const OUString* pAuthor, const OUString* pDate ); - void DoRefConversion( bool bRecord = true ); + void DoRefConversion(); - void DoHangulHanjaConversion( bool bRecord = true ); - void DoThesaurus( bool bRecord = true ); + void DoHangulHanjaConversion(); + void DoThesaurus(); /** Generic implementation of sheet conversion functions. */ void DoSheetConversion( const ScConversionParam& rParam, bool bRecord = true ); |