diff options
author | Noel Grandin <noel@peralex.com> | 2016-03-17 11:21:56 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-03-17 11:02:18 +0000 |
commit | db93b92d78714ed193b3cbe52b18e3cfd9da99b8 (patch) | |
tree | 1442edf9552192ce29b3e271396291e2bbd269a0 /include | |
parent | 336d816176650726f6d14539464d9fd28ddd032d (diff) |
loplugin:constantparam in sfx2
Change-Id: I53e690ab8d50fb3ce43ba633fc018e7b66e591cd
Reviewed-on: https://gerrit.libreoffice.org/23321
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/sfx2/app.hxx | 2 | ||||
-rw-r--r-- | include/sfx2/bindings.hxx | 2 | ||||
-rw-r--r-- | include/sfx2/dispatch.hxx | 7 | ||||
-rw-r--r-- | include/sfx2/fcontnr.hxx | 2 | ||||
-rw-r--r-- | include/sfx2/frame.hxx | 2 | ||||
-rw-r--r-- | include/sfx2/sfxdlg.hxx | 1 | ||||
-rw-r--r-- | include/sfx2/templateremoteview.hxx | 2 | ||||
-rw-r--r-- | include/sfx2/viewsh.hxx | 4 | ||||
-rw-r--r-- | include/svx/svxdlg.hxx | 1 |
9 files changed, 7 insertions, 16 deletions
diff --git a/include/sfx2/app.hxx b/include/sfx2/app.hxx index 10205d32bbf0..f1f876889b28 100644 --- a/include/sfx2/app.hxx +++ b/include/sfx2/app.hxx @@ -147,7 +147,7 @@ public: /** * @param pArgs Takes ownership */ - sal_uIntPtr LoadTemplate( SfxObjectShellLock& xDoc, const OUString& rFileName, bool bCopy=true, SfxItemSet* pArgs = nullptr ); + sal_uIntPtr LoadTemplate( SfxObjectShellLock& xDoc, const OUString& rFileName, SfxItemSet* pArgs = nullptr ); vcl::Window* GetTopWindow() const; // members diff --git a/include/sfx2/bindings.hxx b/include/sfx2/bindings.hxx index 3667a5a16e5d..256b2100fb42 100644 --- a/include/sfx2/bindings.hxx +++ b/include/sfx2/bindings.hxx @@ -170,11 +170,9 @@ public: const SfxPoolItem* ExecuteSynchron( sal_uInt16 nSlot, const SfxPoolItem **pArgs = nullptr, - sal_uInt16 nModi = 0, const SfxPoolItem **pInternalArgs = nullptr); bool Execute( sal_uInt16 nSlot, const SfxPoolItem **pArgs = nullptr, - sal_uInt16 nModi = 0, SfxCallMode nCall = SfxCallMode::SLOT, const SfxPoolItem **pInternalArgs = nullptr); diff --git a/include/sfx2/dispatch.hxx b/include/sfx2/dispatch.hxx index ed4878099db2..bbb2df16b6eb 100644 --- a/include/sfx2/dispatch.hxx +++ b/include/sfx2/dispatch.hxx @@ -82,7 +82,7 @@ class SFX2_DLLPUBLIC SfxDispatcher private: // Search for temporary evaluated Todos - SAL_DLLPRIVATE bool CheckVirtualStack( const SfxShell& rShell, bool bDeep ); + SAL_DLLPRIVATE bool CheckVirtualStack( const SfxShell& rShell ); friend class SfxApplication; friend class SfxViewFrame; @@ -137,11 +137,6 @@ public: SfxCallMode nCall, const SfxItemSet &rArgs ); - const SfxPoolItem* Execute( sal_uInt16 nSlot, - SfxCallMode nCall, - sal_uInt16 nModi, - const SfxItemSet &rArgs ); - const SfxSlot* GetSlot( const OUString& rCommand ); bool IsActive( const SfxShell& rShell ); diff --git a/include/sfx2/fcontnr.hxx b/include/sfx2/fcontnr.hxx index ce5681c3ace5..94a3e2eef2cd 100644 --- a/include/sfx2/fcontnr.hxx +++ b/include/sfx2/fcontnr.hxx @@ -97,7 +97,7 @@ public: sal_uInt32 GuessFilterIgnoringContent( SfxMedium& rMedium, std::shared_ptr<const SfxFilter>& ) const; sal_uInt32 GuessFilter( SfxMedium& rMedium, std::shared_ptr<const SfxFilter>& , SfxFilterFlags nMust = SfxFilterFlags::IMPORT, SfxFilterFlags nDont = SFX_FILTER_NOTINSTALLED ) const; - sal_uInt32 GuessFilterControlDefaultUI( SfxMedium& rMedium, std::shared_ptr<const SfxFilter>&, SfxFilterFlags nMust = SfxFilterFlags::IMPORT, SfxFilterFlags nDont = SFX_FILTER_NOTINSTALLED, bool bDefUI = true ) const; + sal_uInt32 GuessFilterControlDefaultUI( SfxMedium& rMedium, std::shared_ptr<const SfxFilter>&, SfxFilterFlags nMust = SfxFilterFlags::IMPORT, SfxFilterFlags nDont = SFX_FILTER_NOTINSTALLED ) const; sal_uInt32 DetectFilter( SfxMedium& rMedium, std::shared_ptr<const SfxFilter>& ) const; std::shared_ptr<const SfxFilter> GetFilter4Mime( const OUString& rMime, SfxFilterFlags nMust = SfxFilterFlags::IMPORT, SfxFilterFlags nDont = SFX_FILTER_NOTINSTALLED) const; diff --git a/include/sfx2/frame.hxx b/include/sfx2/frame.hxx index b6b9699c5000..e27966a41ef4 100644 --- a/include/sfx2/frame.hxx +++ b/include/sfx2/frame.hxx @@ -109,7 +109,7 @@ protected: SAL_DLLPRIVATE void RemoveChildFrame_Impl( SfxFrame* ); SfxFrame( ); // not implemented - SAL_DLLPRIVATE SfxFrame( vcl::Window& i_rContainerWindow, bool bHidden ); + SAL_DLLPRIVATE SfxFrame( vcl::Window& i_rContainerWindow ); public: static SfxFrame* Create( const css::uno::Reference< css::frame::XFrame >& xFrame ); diff --git a/include/sfx2/sfxdlg.hxx b/include/sfx2/sfxdlg.hxx index 0a77e80df052..df8c08b2e1c9 100644 --- a/include/sfx2/sfxdlg.hxx +++ b/include/sfx2/sfxdlg.hxx @@ -139,7 +139,6 @@ public: virtual AbstractScriptSelectorDialog* CreateScriptSelectorDialog( vcl::Window* pParent, - bool bShowSlots, const css::uno::Reference< css::frame::XFrame >& _rxFrame ) = 0; diff --git a/include/sfx2/templateremoteview.hxx b/include/sfx2/templateremoteview.hxx index 7e5d7f69f960..0ae34bc7aee4 100644 --- a/include/sfx2/templateremoteview.hxx +++ b/include/sfx2/templateremoteview.hxx @@ -27,7 +27,7 @@ public: virtual void showRegion (ThumbnailViewItem *pItem) override; - bool loadRepository (TemplateRepository* pRepository, bool bRefresh); + bool loadRepository (TemplateRepository* pRepository); virtual sal_uInt16 createRegion (const OUString &rName) override; diff --git a/include/sfx2/viewsh.hxx b/include/sfx2/viewsh.hxx index 920de992eaed..1709b8699099 100644 --- a/include/sfx2/viewsh.hxx +++ b/include/sfx2/viewsh.hxx @@ -238,7 +238,7 @@ public: // Printing Interface virtual SfxPrinter* GetPrinter( bool bCreate = false ); - virtual sal_uInt16 SetPrinter( SfxPrinter *pNewPrinter, SfxPrinterChangeFlags nDiffFlags = SFX_PRINTER_ALL, bool bIsAPI=false ); + virtual sal_uInt16 SetPrinter( SfxPrinter *pNewPrinter, SfxPrinterChangeFlags nDiffFlags = SFX_PRINTER_ALL ); virtual bool HasPrintOptionsPage() const; virtual VclPtr<SfxTabPage> CreatePrintOptionsPage( vcl::Window *pParent, const SfxItemSet &rOptions ); static JobSetup GetJobSetup(); @@ -248,7 +248,7 @@ public: virtual void WriteUserData( OUString&, bool bBrowse = false ); virtual void ReadUserData( const OUString&, bool bBrowse = false ); virtual void WriteUserDataSequence ( css::uno::Sequence < css::beans::PropertyValue >& ); - virtual void ReadUserDataSequence ( const css::uno::Sequence < css::beans::PropertyValue >&, bool bBrowse = false ); + virtual void ReadUserDataSequence ( const css::uno::Sequence < css::beans::PropertyValue >& ); virtual void QueryObjAreaPixel( Rectangle& rRect ) const; virtual SfxObjectShell* GetObjectShell() override; diff --git a/include/svx/svxdlg.hxx b/include/svx/svxdlg.hxx index cc51715258c0..2224c3342b6d 100644 --- a/include/svx/svxdlg.hxx +++ b/include/svx/svxdlg.hxx @@ -405,7 +405,6 @@ public: virtual AbstractScriptSelectorDialog* CreateScriptSelectorDialog( vcl::Window* pParent, - bool bShowSlots, const css::uno::Reference< css::frame::XFrame >& _rxFrame ) override = 0; |