diff options
author | Noel Grandin <noel@peralex.com> | 2016-09-09 13:26:44 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-09-09 12:42:25 +0000 |
commit | 20c14c812ccc00692d42d294d3b8dea1774e3511 (patch) | |
tree | d48011cd869cf64069c84d1494f504f6f59b8ed1 /include/sfx2/bindings.hxx | |
parent | 9dc0f2b703d8fbc8698a3cf36949a981e55b68c6 (diff) |
loplugin:constantparam in sfx2
Change-Id: If5d401001abb7bf3fc642d47f537b57836e6d9c5
Reviewed-on: https://gerrit.libreoffice.org/28772
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include/sfx2/bindings.hxx')
-rw-r--r-- | include/sfx2/bindings.hxx | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/include/sfx2/bindings.hxx b/include/sfx2/bindings.hxx index cb852c9a7f04..e77785d801ce 100644 --- a/include/sfx2/bindings.hxx +++ b/include/sfx2/bindings.hxx @@ -167,19 +167,17 @@ public: SfxItemState QueryState( sal_uInt16 nSID, std::unique_ptr<SfxPoolItem> &rpState ); const SfxPoolItem* ExecuteSynchron( sal_uInt16 nSlot, - const SfxPoolItem **pArgs = nullptr, - const SfxPoolItem **pInternalArgs = nullptr); + const SfxPoolItem **pArgs = nullptr); bool Execute( sal_uInt16 nSlot, const SfxPoolItem **pArgs = nullptr, - SfxCallMode nCall = SfxCallMode::SLOT, - const SfxPoolItem **pInternalArgs = nullptr); + SfxCallMode nCall = SfxCallMode::SLOT); SAL_DLLPRIVATE void SetDispatchProvider_Impl( const css::uno::Reference< css::frame::XDispatchProvider > & rFrame ); void SetActiveFrame( const css::uno::Reference< css::frame::XFrame > & rFrame ); const css::uno::Reference< css::frame::XFrame > GetActiveFrame() const; // Reconfig - sal_uInt16 EnterRegistrations(const char *pFile = nullptr, int nLine = 0); - void LeaveRegistrations( sal_uInt16 nLevel = USHRT_MAX, const char *pFile = nullptr, int nLine = 0 ); + sal_uInt16 EnterRegistrations(const char *pFile = nullptr, int nLine = 0); + void LeaveRegistrations( const char *pFile = nullptr, int nLine = 0 ); void Register( SfxControllerItem& rBinding ); void Release( SfxControllerItem& rBinding ); SfxDispatcher* GetDispatcher() const @@ -204,11 +202,11 @@ public: #ifdef DBG_UTIL #define ENTERREGISTRATIONS() EnterRegistrations(__FILE__, __LINE__) -#define LEAVEREGISTRATIONS() LeaveRegistrations(USHRT_MAX, __FILE__, __LINE__) +#define LEAVEREGISTRATIONS() LeaveRegistrations(__FILE__, __LINE__) #define DENTERREGISTRATIONS() \ EnterRegistrations( OStringBuffer(__FILE__).append('(').append(reinterpret_cast<sal_Int64>(this)).append(')').getStr(), __LINE__ ) #define DLEAVEREGISTRATIONS( ) \ - LeaveRegistrations( USHRT_MAX, OStringBuffer(__FILE__).append('(').append(reinterpret_cast<sal_Int64>(this)).append(')').getStr(), __LINE__ ) + LeaveRegistrations( OStringBuffer(__FILE__).append('(').append(reinterpret_cast<sal_Int64>(this)).append(')').getStr(), __LINE__ ) #else #define ENTERREGISTRATIONS() EnterRegistrations() #define LEAVEREGISTRATIONS() LeaveRegistrations() |