diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-05-08 15:50:31 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-05-09 14:34:37 +0200 |
commit | a9563370242f0b3b95482659d5cf75c5c9c72c32 (patch) | |
tree | 31a449c8aa55937d0f3de1a7babb34bf0c335e5f /sw/source/ui | |
parent | 3f8db07acb50fe04d2b02355df19780634449e2c (diff) |
loplugin:checkunusedparams in sw(part6)
Change-Id: I8c32274081663038526e1af2bd2977604b3f88b5
Reviewed-on: https://gerrit.libreoffice.org/37393
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/ui')
-rw-r--r-- | sw/source/ui/dbui/dbinsdlg.cxx | 2 | ||||
-rw-r--r-- | sw/source/ui/dialog/swdlgfact.cxx | 4 | ||||
-rw-r--r-- | sw/source/ui/dialog/swdlgfact.hxx | 2 | ||||
-rw-r--r-- | sw/source/ui/table/tabledlg.cxx | 2 | ||||
-rw-r--r-- | sw/source/ui/table/tautofmt.cxx | 8 | ||||
-rw-r--r-- | sw/source/ui/vba/vbacell.cxx | 2 | ||||
-rw-r--r-- | sw/source/ui/vba/vbadocumentproperties.cxx | 6 | ||||
-rw-r--r-- | sw/source/ui/vba/vbatablehelper.cxx | 8 | ||||
-rw-r--r-- | sw/source/ui/vba/vbatablehelper.hxx | 4 |
9 files changed, 19 insertions, 19 deletions
diff --git a/sw/source/ui/dbui/dbinsdlg.cxx b/sw/source/ui/dbui/dbinsdlg.cxx index a96b74d61b6a..5bfc7a99c50e 100644 --- a/sw/source/ui/dbui/dbinsdlg.cxx +++ b/sw/source/ui/dbui/dbinsdlg.cxx @@ -765,7 +765,7 @@ IMPL_LINK( SwInsertDBColAutoPilot, TableFormatHdl, Button*, pButton, void ) SwAbstractDialogFactory* pFact = swui::GetFactory(); OSL_ENSURE(pFact, "SwAbstractDialogFactory fail!"); - ScopedVclPtr<SfxAbstractTabDialog> pDlg(pFact->CreateSwTableTabDlg(pButton, rSh.GetAttrPool(), pTableSet, &rSh)); + ScopedVclPtr<SfxAbstractTabDialog> pDlg(pFact->CreateSwTableTabDlg(pButton, pTableSet, &rSh)); OSL_ENSURE(pDlg, "Dialog creation failed!"); if( RET_OK == pDlg->Execute() ) pTableSet->Put( *pDlg->GetOutputItemSet() ); diff --git a/sw/source/ui/dialog/swdlgfact.cxx b/sw/source/ui/dialog/swdlgfact.cxx index a55f82321fd4..0840530fe608 100644 --- a/sw/source/ui/dialog/swdlgfact.cxx +++ b/sw/source/ui/dialog/swdlgfact.cxx @@ -831,10 +831,10 @@ VclPtr<VclAbstractDialog> SwAbstractDialogFactory_Impl::CreateSwTableWidthDlg(vc return VclPtr<VclAbstractDialog_Impl>::Create( pDlg ); } -VclPtr<SfxAbstractTabDialog> SwAbstractDialogFactory_Impl::CreateSwTableTabDlg(vcl::Window* pParent, SfxItemPool& Pool, +VclPtr<SfxAbstractTabDialog> SwAbstractDialogFactory_Impl::CreateSwTableTabDlg(vcl::Window* pParent, const SfxItemSet* pItemSet, SwWrtShell* pSh) { - VclPtr<SfxTabDialog> pDlg = VclPtr<SwTableTabDlg>::Create(pParent, Pool, pItemSet, pSh); + VclPtr<SfxTabDialog> pDlg = VclPtr<SwTableTabDlg>::Create(pParent, pItemSet, pSh); return VclPtr<AbstractTabDialog_Impl>::Create(pDlg); } diff --git a/sw/source/ui/dialog/swdlgfact.hxx b/sw/source/ui/dialog/swdlgfact.hxx index 456a953b5c1b..75a690b730f0 100644 --- a/sw/source/ui/dialog/swdlgfact.hxx +++ b/sw/source/ui/dialog/swdlgfact.hxx @@ -417,7 +417,7 @@ public: virtual VclPtr<SfxAbstractDialog> CreateSwWrapDlg ( vcl::Window* pParent, SfxItemSet& rSet, SwWrtShell* pSh ) override; virtual VclPtr<VclAbstractDialog> CreateSwTableWidthDlg(vcl::Window *pParent, SwTableFUNC &rFnc) override; - virtual VclPtr<SfxAbstractTabDialog> CreateSwTableTabDlg(vcl::Window* pParent, SfxItemPool& Pool, + virtual VclPtr<SfxAbstractTabDialog> CreateSwTableTabDlg(vcl::Window* pParent, const SfxItemSet* pItemSet, SwWrtShell* pSh) override; virtual VclPtr<AbstractSwFieldDlg> CreateSwFieldDlg(SfxBindings* pB, SwChildWinWrapper* pCW, vcl::Window *pParent) override; virtual VclPtr<SfxAbstractDialog> CreateSwFieldEditDlg ( SwView& rVw ) override; diff --git a/sw/source/ui/table/tabledlg.cxx b/sw/source/ui/table/tabledlg.cxx index b06f51ab5188..603fa93c7fb5 100644 --- a/sw/source/ui/table/tabledlg.cxx +++ b/sw/source/ui/table/tabledlg.cxx @@ -1227,7 +1227,7 @@ void SwTableColumnPage::SetVisibleWidth(sal_uInt16 nPos, SwTwips nNewWidth) } -SwTableTabDlg::SwTableTabDlg(vcl::Window* pParent, SfxItemPool&, +SwTableTabDlg::SwTableTabDlg(vcl::Window* pParent, const SfxItemSet* pItemSet, SwWrtShell* pSh) : SfxTabDialog(pParent, "TablePropertiesDialog", "modules/swriter/ui/tableproperties.ui", pItemSet) diff --git a/sw/source/ui/table/tautofmt.cxx b/sw/source/ui/table/tautofmt.cxx index 1295b902935c..0af33923bf71 100644 --- a/sw/source/ui/table/tautofmt.cxx +++ b/sw/source/ui/table/tautofmt.cxx @@ -83,7 +83,7 @@ private: uno::Reference<i18n::XBreakIterator> m_xBreak; void Init(); - void DoPaint(vcl::RenderContext& rRenderContext, const tools::Rectangle& rRect); + void DoPaint(vcl::RenderContext& rRenderContext); void CalcCellArray(bool bFitWidth); void CalcLineMap(); void PaintCells(vcl::RenderContext& rRenderContext); @@ -889,7 +889,7 @@ void AutoFormatPreview::NotifyChange( const SwTableAutoFormat& rNewData ) Invalidate(tools::Rectangle(Point(0,0), GetSizePixel())); } -void AutoFormatPreview::DoPaint(vcl::RenderContext& rRenderContext, const tools::Rectangle& /*rRect*/) +void AutoFormatPreview::DoPaint(vcl::RenderContext& rRenderContext) { DrawModeFlags nOldDrawMode = aVD->GetDrawMode(); if (rRenderContext.GetSettings().GetStyleSettings().GetHighContrastMode()) @@ -935,9 +935,9 @@ void AutoFormatPreview::DoPaint(vcl::RenderContext& rRenderContext, const tools: aVD->SetDrawMode(nOldDrawMode); } -void AutoFormatPreview::Paint( vcl::RenderContext& rRenderContext, const tools::Rectangle& rRect ) +void AutoFormatPreview::Paint( vcl::RenderContext& rRenderContext, const tools::Rectangle& /*rRect*/ ) { - DoPaint(rRenderContext, rRect); + DoPaint(rRenderContext); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/vba/vbacell.cxx b/sw/source/ui/vba/vbacell.cxx index 17b518eb8b54..21b257b3cb48 100644 --- a/sw/source/ui/vba/vbacell.cxx +++ b/sw/source/ui/vba/vbacell.cxx @@ -42,7 +42,7 @@ SwVbaCell::~SwVbaCell() ::sal_Int32 SAL_CALL SwVbaCell::getWidth() { SwVbaTableHelper aTableHelper( mxTextTable ); - return aTableHelper.GetColWidth( mnColumn, mnRow, true ); + return aTableHelper.GetColWidth( mnColumn, mnRow ); } void SAL_CALL SwVbaCell::setWidth( ::sal_Int32 _width ) diff --git a/sw/source/ui/vba/vbadocumentproperties.cxx b/sw/source/ui/vba/vbadocumentproperties.cxx index 5f042ab2abf7..c409de73df73 100644 --- a/sw/source/ui/vba/vbadocumentproperties.cxx +++ b/sw/source/ui/vba/vbadocumentproperties.cxx @@ -865,7 +865,7 @@ public: return new DocPropEnumeration( simpleDocPropSnapShot ); } - void addProp( const OUString& Name, ::sal_Int8 /*Type*/, const uno::Any& Value ) + void addProp( const OUString& Name, const uno::Any& Value ) { sal_Int16 attributes = 128; uno::Reference< beans::XPropertyContainer > xContainer( mxUserDefinedProp, uno::UNO_QUERY_THROW ); @@ -883,14 +883,14 @@ SwVbaCustomDocumentProperties::SwVbaCustomDocumentProperties( const uno::Referen } uno::Reference< XDocumentProperty > SAL_CALL -SwVbaCustomDocumentProperties::Add( const OUString& Name, sal_Bool LinkToContent, ::sal_Int8 Type, const uno::Any& Value, const uno::Any& LinkSource ) +SwVbaCustomDocumentProperties::Add( const OUString& Name, sal_Bool LinkToContent, ::sal_Int8 /*Type*/, const uno::Any& Value, const uno::Any& LinkSource ) { CustomPropertiesImpl* pCustomProps = dynamic_cast< CustomPropertiesImpl* > ( m_xIndexAccess.get() ); uno::Reference< XDocumentProperty > xDocProp; if ( pCustomProps ) { OUString sLinkSource; - pCustomProps->addProp( Name, Type, Value ); + pCustomProps->addProp( Name, Value ); xDocProp.set( m_xNameAccess->getByName( Name ), uno::UNO_QUERY_THROW ); xDocProp->setLinkToContent( LinkToContent ); diff --git a/sw/source/ui/vba/vbatablehelper.cxx b/sw/source/ui/vba/vbatablehelper.cxx index db7d62caddfb..eeff0d96ae69 100644 --- a/sw/source/ui/vba/vbatablehelper.cxx +++ b/sw/source/ui/vba/vbatablehelper.cxx @@ -151,7 +151,7 @@ SwTableBox* SwVbaTableHelper::GetTabBox( sal_Int32 nCol, sal_Int32 nRow ) return pStart; } -void SwVbaTableHelper::InitTabCols( SwTabCols& rCols, const SwTableBox *pStart, bool /*bCurRowOnly*/ ) +void SwVbaTableHelper::InitTabCols( SwTabCols& rCols, const SwTableBox *pStart ) { rCols.SetLeftMin ( 0 ); rCols.SetLeft ( 0 ); @@ -182,11 +182,11 @@ sal_Int32 SwVbaTableHelper::GetRightSeparator( SwTabCols& rCols, sal_Int32 nNum) return i - 1; } -sal_Int32 SwVbaTableHelper::GetColWidth( sal_Int32 nCol, sal_Int32 nRow, bool bCurRowOnly ) +sal_Int32 SwVbaTableHelper::GetColWidth( sal_Int32 nCol, sal_Int32 nRow ) { SwTableBox* pStart = GetTabBox( nCol, nRow ); SwTabCols aCols; - InitTabCols( aCols, pStart, bCurRowOnly ); + InitTabCols( aCols, pStart ); sal_Int32 nWidth = GetColWidth( aCols, nCol ); sal_Int32 nTableWidth = getTableWidth( ); @@ -238,7 +238,7 @@ void SwVbaTableHelper::SetColWidth( sal_Int32 _width, sal_Int32 nCol, sal_Int32 SwTableBox* pStart = GetTabBox( nCol, nRow ); SwTabCols aOldCols; - InitTabCols( aOldCols, pStart, bCurRowOnly ); + InitTabCols( aOldCols, pStart ); SwTabCols aCols( aOldCols ); if ( aCols.Count() > 0 ) diff --git a/sw/source/ui/vba/vbatablehelper.hxx b/sw/source/ui/vba/vbatablehelper.hxx index 42aeaaabe1bd..6f4a4d4424b6 100644 --- a/sw/source/ui/vba/vbatablehelper.hxx +++ b/sw/source/ui/vba/vbatablehelper.hxx @@ -33,7 +33,7 @@ private: private: /// @throws css::uno::RuntimeException SwTableBox* GetTabBox( sal_Int32 nCol, sal_Int32 nRow ); - void InitTabCols( SwTabCols& rCols, const SwTableBox *pStart, bool bCurRowOnly ); + void InitTabCols( SwTabCols& rCols, const SwTableBox *pStart ); static sal_Int32 GetRightSeparator( SwTabCols& rCols, sal_Int32 nNum); static sal_Int32 GetColCount( SwTabCols& rCols ); /// @throws css::uno::RuntimeException @@ -54,7 +54,7 @@ public: sal_Int32 getTableWidth( ); /// @throws css::uno::RuntimeException - sal_Int32 GetColWidth( sal_Int32 nCol, sal_Int32 nRow = 0, bool bCurRowOnly = false ); + sal_Int32 GetColWidth( sal_Int32 nCol, sal_Int32 nRow = 0 ); /// @throws css::uno::RuntimeException void SetColWidth( sal_Int32 _width, sal_Int32 nCol, sal_Int32 nRow = 0, bool bCurRowOnly = false ); |