diff options
author | Noel Grandin <noel@peralex.com> | 2016-08-05 12:03:30 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-08-05 11:56:06 +0000 |
commit | a40278562557828634886924c82f58e215be9756 (patch) | |
tree | cab700911bbcfbf280d962cbcac433e2892a337b /sfx2 | |
parent | b4e12269e813338afc895986fbc4f2703cedd016 (diff) |
loplugin:countusersofdefaultparams in sfx2..svgio
Change-Id: Ia01f3a9aa21c88df5fe5242ad4a3c0acbe68fda0
Reviewed-on: https://gerrit.libreoffice.org/27903
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/doc/doctemplates.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/inc/macroloader.hxx | 2 | ||||
-rw-r--r-- | sfx2/source/inc/splitwin.hxx | 4 | ||||
-rw-r--r-- | sfx2/source/inc/statcach.hxx | 8 | ||||
-rw-r--r-- | sfx2/source/inc/templdgi.hxx | 18 | ||||
-rw-r--r-- | sfx2/source/inc/workwin.hxx | 4 |
6 files changed, 19 insertions, 19 deletions
diff --git a/sfx2/source/doc/doctemplates.cxx b/sfx2/source/doc/doctemplates.cxx index 12454078eb9a..2da4daae3dfd 100644 --- a/sfx2/source/doc/doctemplates.cxx +++ b/sfx2/source/doc/doctemplates.cxx @@ -254,7 +254,7 @@ class SfxDocTplService_Impl const OUString& rTitle, const OUString& rUITitle, const OUString& rOwnURL, - bool bWriteableGroup = false ); + bool bWriteableGroup ); void removeFromHierarchy( DocTemplates_EntryData_Impl *pData ); void addToHierarchy( GroupData_Impl *pGroup, DocTemplates_EntryData_Impl *pData ); diff --git a/sfx2/source/inc/macroloader.hxx b/sfx2/source/inc/macroloader.hxx index fe11d3beab0e..a4251e2b9d61 100644 --- a/sfx2/source/inc/macroloader.hxx +++ b/sfx2/source/inc/macroloader.hxx @@ -63,7 +63,7 @@ public: virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() throw (css::uno::RuntimeException, std::exception) override; - static ErrCode loadMacro( const OUString& aURL, css::uno::Any& rRetval, SfxObjectShell* pDoc=nullptr ) throw( css::uno::RuntimeException, css::ucb::ContentCreationException, std::exception ); + static ErrCode loadMacro( const OUString& aURL, css::uno::Any& rRetval, SfxObjectShell* pDoc ) throw( css::uno::RuntimeException, css::ucb::ContentCreationException, std::exception ); virtual css::uno::Reference < css::frame::XDispatch > SAL_CALL queryDispatch( const css::util::URL& aURL, const OUString& sTargetFrameName, diff --git a/sfx2/source/inc/splitwin.hxx b/sfx2/source/inc/splitwin.hxx index b16bb227ce42..b0a97b69dfd7 100644 --- a/sfx2/source/inc/splitwin.hxx +++ b/sfx2/source/inc/splitwin.hxx @@ -57,7 +57,7 @@ private: const Size& rSize, sal_uInt16 nLine, sal_uInt16 nPos, - bool bNewLine=false ); + bool bNewLine ); DECL_LINK_TYPED( TimerHdl, Timer*, void ); bool CursorIsOverRect() const; @@ -91,7 +91,7 @@ public: const Size& rSize, sal_uInt16 nLine, sal_uInt16 nPos, - bool bNewLine=false ); + bool bNewLine ); void MoveWindow( SfxDockingWindow* pDockWin, const Size& rSize, diff --git a/sfx2/source/inc/statcach.hxx b/sfx2/source/inc/statcach.hxx index fe25e99f2f18..77fc56ad7495 100644 --- a/sfx2/source/inc/statcach.hxx +++ b/sfx2/source/inc/statcach.hxx @@ -56,7 +56,7 @@ public: void Release(); const css::frame::FeatureStateEvent& GetStatus() const { return aStatus;} - sal_Int16 Dispatch( const css::uno::Sequence < css::beans::PropertyValue >& aProps, bool bForceSynchron = false ); + sal_Int16 Dispatch( const css::uno::Sequence < css::beans::PropertyValue >& aProps, bool bForceSynchron ); }; class SfxStateCache @@ -77,7 +77,7 @@ friend class BindDispatch_Impl; private: SfxStateCache( const SfxStateCache& rOrig ) = delete; - void SetState_Impl( SfxItemState, const SfxPoolItem*, bool bMaybeDirty=false ); + void SetState_Impl( SfxItemState, const SfxPoolItem*, bool bMaybeDirty ); public: SfxStateCache( sal_uInt16 nFuncId ); @@ -89,7 +89,7 @@ public: const SfxSlotServer* GetSlotServer( SfxDispatcher &rDispat ) { return GetSlotServer( rDispat, css::uno::Reference< css::frame::XDispatchProvider > () ); } css::uno::Reference< css::frame::XDispatch > GetDispatch() const; - sal_Int16 Dispatch( const SfxItemSet* pSet, bool bForceSynchron = false ); + sal_Int16 Dispatch( const SfxItemSet* pSet, bool bForceSynchron ); bool IsControllerDirty() const { return bCtrlDirty; } void ClearCache(); @@ -97,7 +97,7 @@ public: void SetState( SfxItemState, const SfxPoolItem*, bool bMaybeDirty=false ); void SetCachedState(bool bAlways); void Invalidate( bool bWithSlot ); - void SetVisibleState( bool bShow=true ); + void SetVisibleState( bool bShow ); SfxControllerItem* ChangeItemLink( SfxControllerItem* pNewBinding ); SfxControllerItem* GetItemLink() const; diff --git a/sfx2/source/inc/templdgi.hxx b/sfx2/source/inc/templdgi.hxx index 336d23fb5c4a..cf403d7d83b0 100644 --- a/sfx2/source/inc/templdgi.hxx +++ b/sfx2/source/inc/templdgi.hxx @@ -230,7 +230,7 @@ protected: void InvalidateBindings(); virtual void InsertFamilyItem( sal_uInt16 nId, const SfxStyleFamilyItem* pItem ) = 0; - virtual void EnableFamilyItem( sal_uInt16 nId, bool bEnabled = true ) = 0; + virtual void EnableFamilyItem( sal_uInt16 nId, bool bEnabled ) = 0; virtual void ClearFamilyList() = 0; virtual void ReplaceUpdateButtonByMenu(); @@ -255,7 +255,7 @@ protected: void Initialize(); void EnableHierarchical(bool); - void FilterSelect( sal_uInt16 nFilterIdx, bool bForce = false ); + void FilterSelect( sal_uInt16 nFilterIdx, bool bForce ); void SetFamilyState( sal_uInt16 nSlotId, const SfxTemplateItem* ); void SetWaterCanState( const SfxBoolItem* pItem ); bool IsSafeForWaterCan() const; @@ -289,7 +289,7 @@ public: DECL_LINK_TYPED( MenuSelectHdl, Menu*, bool ); DECL_LINK_TYPED( MenuSelectAsyncHdl, void*, void ); - virtual void EnableEdit( bool b = true ) + virtual void EnableEdit( bool b ) { bCanEdit = b; } @@ -297,15 +297,15 @@ public: { bCanDel = b; } - void EnableNew( bool b = true ) + void EnableNew( bool b ) { bCanNew = b; } - void EnableHide( bool b = true ) + void EnableHide( bool b ) { bCanHide = b; } - void EnableShow( bool b = true ) + void EnableShow( bool b ) { bCanShow = b; } @@ -315,7 +315,7 @@ public: return pWindow; } - void EnableTreeDrag(bool b = true); + void EnableTreeDrag(bool b); void EnableExample_Impl(sal_uInt16 nId, bool bEnable); SfxStyleFamily GetActualFamily() const; OUString GetSelectedEntry() const; @@ -356,13 +356,13 @@ private: DECL_LINK_TYPED( MenuSelectHdl, Menu*, bool ); protected: - virtual void EnableEdit( bool = true ) override; + virtual void EnableEdit( bool ) override; virtual void EnableItem( sal_uInt16 nMesId, bool bCheck = true ) override; virtual void CheckItem( sal_uInt16 nMesId, bool bCheck = true ) override; virtual bool IsCheckedItem( sal_uInt16 nMesId ) override; virtual void LoadedFamilies() override; virtual void InsertFamilyItem( sal_uInt16 nId, const SfxStyleFamilyItem* pIten ) override; - virtual void EnableFamilyItem( sal_uInt16 nId, bool bEnabled = true ) override; + virtual void EnableFamilyItem( sal_uInt16 nId, bool bEnabled ) override; virtual void ClearFamilyList() override; virtual void ReplaceUpdateButtonByMenu() override; diff --git a/sfx2/source/inc/workwin.hxx b/sfx2/source/inc/workwin.hxx index b5826a437f05..6643cf2a01a8 100644 --- a/sfx2/source/inc/workwin.hxx +++ b/sfx2/source/inc/workwin.hxx @@ -257,13 +257,13 @@ public: // Methods for all Child windows void DataChanged_Impl( const DataChangedEvent& rDCEvt ); void ReleaseChild_Impl( vcl::Window& rWindow ); - SfxChild_Impl* RegisterChild_Impl( vcl::Window& rWindow, SfxChildAlignment eAlign, bool bCanGetFocus=false ); + SfxChild_Impl* RegisterChild_Impl( vcl::Window& rWindow, SfxChildAlignment eAlign, bool bCanGetFocus ); void ShowChildren_Impl(); void HideChildren_Impl(); bool PrepareClose_Impl(); virtual void ArrangeChildren_Impl( bool bForce = true ); void DeleteControllers_Impl(); - void HidePopups_Impl(bool bHide, bool bParent=false, sal_uInt16 nId=0); + void HidePopups_Impl(bool bHide, bool bParent, sal_uInt16 nId=0); void ConfigChild_Impl(SfxChildIdentifier, SfxDockingConfig, sal_uInt16); void MakeChildrenVisible_Impl( bool bVis ); |