summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-03-04 09:24:48 +0200
committerNoel Grandin <noel@peralex.com>2016-03-04 11:48:04 +0200
commit9a1e6d916eff1236cc1be2056c91e56018a482bf (patch)
tree95c0dac3d7b10ef96174431f0363b401aec8cd1c /cui
parent6610ad9aee0c8299880cd1da6cd6a756860ccad9 (diff)
loplugin:unuseddefaultparam in sfx2
and fix an issue with calls to templated methods in the plugin Change-Id: I9c9537a0690ff671286c007846d5f4cfb7d2982b
Diffstat (limited to 'cui')
-rw-r--r--cui/source/factory/dlgfact.cxx11
-rw-r--r--cui/source/factory/dlgfact.hxx9
2 files changed, 7 insertions, 13 deletions
diff --git a/cui/source/factory/dlgfact.cxx b/cui/source/factory/dlgfact.cxx
index 2e29be257905..01b4143b01d9 100644
--- a/cui/source/factory/dlgfact.cxx
+++ b/cui/source/factory/dlgfact.cxx
@@ -369,10 +369,9 @@ void AbstractPasteDialog_Impl::SetObjName( const SvGlobalName & rClass, const OU
pDlg->SetObjName( rClass, rObjName );
}
-SotClipboardFormatId AbstractPasteDialog_Impl::GetFormat( const TransferableDataHelper& aHelper,
- const DataFlavorExVector* pFormats )
+SotClipboardFormatId AbstractPasteDialog_Impl::GetFormat( const TransferableDataHelper& aHelper )
{
- return pDlg->GetFormat( aHelper, pFormats );
+ return pDlg->GetFormat( aHelper );
}
void AbstractFmShowColsDialog_Impl::SetColumns(const ::Reference< css::container::XIndexContainer>& xCols)
@@ -878,8 +877,7 @@ VclAbstractDialog* AbstractDialogFactory_Impl::CreateFrameDialog(
SfxAbstractTabDialog* AbstractDialogFactory_Impl::CreateTabDialog( sal_uInt32 nResId,
vcl::Window* pParent,
const SfxItemSet* pAttrSet,
- SfxViewFrame* ,
- bool /*bEditFmt*/ )
+ SfxViewFrame* )
{
SfxTabDialog* pDlg=nullptr;
switch ( nResId )
@@ -902,8 +900,7 @@ SfxAbstractTabDialog* AbstractDialogFactory_Impl::CreateTabDialog( sal_uInt32 nR
SfxAbstractTabDialog* AbstractDialogFactory_Impl::CreateTabDialog( sal_uInt32 nResId,
vcl::Window* pParent,
const SfxItemSet* pAttrSet,
- const Reference< frame::XFrame >& xViewFrame,
- bool /*bEditFmt*/ )
+ const Reference< frame::XFrame >& xViewFrame )
{
VclPtr<SfxTabDialog> pDlg;
switch ( nResId )
diff --git a/cui/source/factory/dlgfact.hxx b/cui/source/factory/dlgfact.hxx
index 9b45704d8f92..27eec401049c 100644
--- a/cui/source/factory/dlgfact.hxx
+++ b/cui/source/factory/dlgfact.hxx
@@ -432,8 +432,7 @@ public:
DECL_ABSTDLG_BASE(AbstractPasteDialog_Impl, SvPasteObjectDialog )
virtual void Insert( SotClipboardFormatId nFormat, const OUString & rFormatName ) override;
virtual void SetObjName( const SvGlobalName & rClass, const OUString & rObjName ) override;
- virtual SotClipboardFormatId GetFormat( const TransferableDataHelper& aHelper,
- const DataFlavorExVector* pFormats=nullptr ) override;
+ virtual SotClipboardFormatId GetFormat( const TransferableDataHelper& aHelper ) override;
};
class AbstractLinksDialog_Impl : public SfxAbstractLinksDialog
@@ -495,13 +494,11 @@ public:
virtual SfxAbstractTabDialog* CreateTabDialog( sal_uInt32 nResId,
vcl::Window* pParent,
const SfxItemSet* pAttrSet,
- SfxViewFrame* pViewFrame,
- bool bEditFmt=false ) override;
+ SfxViewFrame* pViewFrame ) override;
virtual SfxAbstractTabDialog* CreateTabDialog( sal_uInt32 nResId,
vcl::Window* pParent,
const SfxItemSet* pAttrSet,
- const css::uno::Reference< css::frame::XFrame >& xViewFrame,
- bool bEditFmt=false ) override;
+ const css::uno::Reference< css::frame::XFrame >& xViewFrame ) override;
virtual SfxAbstractTabDialog* CreateTextTabDialog( vcl::Window* pParent,
const SfxItemSet* pAttrSet,
SdrView* pView ) override;