diff options
author | Noel Grandin <noel@peralex.com> | 2016-03-04 09:24:48 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-03-04 11:48:04 +0200 |
commit | 9a1e6d916eff1236cc1be2056c91e56018a482bf (patch) | |
tree | 95c0dac3d7b10ef96174431f0363b401aec8cd1c /include | |
parent | 6610ad9aee0c8299880cd1da6cd6a756860ccad9 (diff) |
loplugin:unuseddefaultparam in sfx2
and fix an issue with calls to templated methods in the plugin
Change-Id: I9c9537a0690ff671286c007846d5f4cfb7d2982b
Diffstat (limited to 'include')
-rw-r--r-- | include/sfx2/childwin.hxx | 3 | ||||
-rw-r--r-- | include/sfx2/fcontnr.hxx | 2 | ||||
-rw-r--r-- | include/sfx2/progress.hxx | 2 | ||||
-rw-r--r-- | include/sfx2/sfxdlg.hxx | 9 | ||||
-rw-r--r-- | include/sfx2/tabdlg.hxx | 5 |
5 files changed, 8 insertions, 13 deletions
diff --git a/include/sfx2/childwin.hxx b/include/sfx2/childwin.hxx index 973e23fd96e1..ce9bf9159b88 100644 --- a/include/sfx2/childwin.hxx +++ b/include/sfx2/childwin.hxx @@ -78,8 +78,7 @@ struct SAL_DLLPUBLIC_RTTI SfxChildWinInfo } bool GetExtraData_Impl( SfxChildAlignment *pAlign, SfxChildAlignment *pLastAlign = nullptr, - Size *pSize = nullptr, - sal_uInt16 *pLine = nullptr ) const; + Size *pSize = nullptr ) const; }; // ChildWindow factory methods diff --git a/include/sfx2/fcontnr.hxx b/include/sfx2/fcontnr.hxx index a15c9b0d7133..54f48508e57a 100644 --- a/include/sfx2/fcontnr.hxx +++ b/include/sfx2/fcontnr.hxx @@ -95,7 +95,7 @@ public: SAL_DLLPRIVATE static bool IsFilterInstalled_Impl( const SfxFilter* pFilter ); DECL_DLLPRIVATE_LINK_TYPED( MaybeFileHdl_Impl, OUString*, bool ); - sal_uInt32 GuessFilterIgnoringContent( SfxMedium& rMedium, const SfxFilter **, SfxFilterFlags nMust = SfxFilterFlags::IMPORT ) const; + sal_uInt32 GuessFilterIgnoringContent( SfxMedium& rMedium, const SfxFilter ** ) const; sal_uInt32 GuessFilter( SfxMedium& rMedium, const SfxFilter **, SfxFilterFlags nMust = SfxFilterFlags::IMPORT, SfxFilterFlags nDont = SFX_FILTER_NOTINSTALLED ) const; sal_uInt32 GuessFilterControlDefaultUI( SfxMedium& rMedium, const SfxFilter **, SfxFilterFlags nMust = SfxFilterFlags::IMPORT, SfxFilterFlags nDont = SFX_FILTER_NOTINSTALLED, bool bDefUI = true ) const; sal_uInt32 DetectFilter( SfxMedium& rMedium, const SfxFilter ** ) const; diff --git a/include/sfx2/progress.hxx b/include/sfx2/progress.hxx index f613a3df5657..ba763844c4b5 100644 --- a/include/sfx2/progress.hxx +++ b/include/sfx2/progress.hxx @@ -46,7 +46,7 @@ public: bool bWait = true ); virtual ~SfxProgress(); - bool SetStateText( sal_uIntPtr nVal, const rtl::OUString &rVal, sal_uIntPtr nNewRange = 0 ); + bool SetStateText( sal_uIntPtr nVal, const rtl::OUString &rVal ); bool SetState( sal_uIntPtr nVal, sal_uIntPtr nNewRange = 0 ); sal_uIntPtr GetState() const { return nVal; } diff --git a/include/sfx2/sfxdlg.hxx b/include/sfx2/sfxdlg.hxx index ccd59d33d51c..4548dc889bf9 100644 --- a/include/sfx2/sfxdlg.hxx +++ b/include/sfx2/sfxdlg.hxx @@ -95,8 +95,7 @@ class SfxAbstractPasteDialog : virtual public VclAbstractDialog public: virtual void Insert( SotClipboardFormatId nFormat, const rtl::OUString & rFormatName ) = 0; virtual void SetObjName( const SvGlobalName & rClass, const rtl::OUString & rObjName ) = 0; - virtual SotClipboardFormatId GetFormat( const TransferableDataHelper& aHelper, - const DataFlavorExVector* pFormats=nullptr ) = 0; + virtual SotClipboardFormatId GetFormat( const TransferableDataHelper& aHelper ) = 0; }; class SfxAbstractLinksDialog : virtual public VclAbstractDialog @@ -121,13 +120,11 @@ public: virtual SfxAbstractTabDialog* CreateTabDialog( sal_uInt32 nResId, vcl::Window* pParent, const SfxItemSet* pAttrSet, - SfxViewFrame* pViewFrame, - bool bEditFmt=false ) = 0; + SfxViewFrame* pViewFrame ) = 0; virtual SfxAbstractTabDialog* CreateTabDialog( sal_uInt32 nResId, vcl::Window* pParent, const SfxItemSet* pAttrSet, - const css::uno::Reference< css::frame::XFrame >& xViewFrame, - bool bEditFmt=false ) = 0; + const css::uno::Reference< css::frame::XFrame >& xViewFrame ) = 0; virtual CreateTabPage GetTabPageCreatorFunc( sal_uInt16 nId ) = 0; virtual GetTabPageRanges GetTabPageRangesFunc( sal_uInt16 nId ) = 0; virtual SfxAbstractInsertObjectDialog* CreateInsertObjectDialog( vcl::Window* pParent, const OUString& rCommand, diff --git a/include/sfx2/tabdlg.hxx b/include/sfx2/tabdlg.hxx index 16b74a97bd60..b328ccb89de4 100644 --- a/include/sfx2/tabdlg.hxx +++ b/include/sfx2/tabdlg.hxx @@ -140,8 +140,7 @@ public: sal_uInt16 nPos = TAB_APPEND); void AddTabPage( sal_uInt16 nId, - const OUString &rRiderText, - bool bItemsOnDemand = false); + const OUString &rRiderText); void RemoveTabPage( const OString& rName ); // Name of the label for the page in the notebook .ui void RemoveTabPage( sal_uInt16 nId ); @@ -188,7 +187,7 @@ public: short Execute() override; void StartExecuteModal( const Link<Dialog&,void>& rEndDialogHdl ) override; - void Start( bool bShow = true ); + void Start(); const SfxItemSet* GetExampleSet() const { return pExampleSet; } SfxItemSet* GetExampleSet() { return pExampleSet; } |