summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-08-01 08:40:47 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-08-01 11:06:26 +0200
commit612b489d3e05b24c1b6690082e8518bac033e9d2 (patch)
tree23a6c556989071385d1c64730ed72bdbae7c239c /sfx2
parent17e14d459dea201b57be2d8e677fa776ead03291 (diff)
loplugin:checkunusedparams
the "check for taking address of function" part was generating false+ Change-Id: Iad6203850901229b7b1b2f8938c68ec703cd343f Reviewed-on: https://gerrit.libreoffice.org/40613 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/control/unoctitm.cxx4
-rw-r--r--sfx2/source/doc/new.cxx6
-rw-r--r--sfx2/source/inc/preview.hxx2
3 files changed, 6 insertions, 6 deletions
diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx
index acb456e595aa..433dfbbf66ea 100644
--- a/sfx2/source/control/unoctitm.cxx
+++ b/sfx2/source/control/unoctitm.cxx
@@ -597,7 +597,7 @@ void collectUsageInformation(const util::URL& rURL, const uno::Sequence<beans::P
theUsageInfo::get().increment(aCommand);
}
-void collectUIInformation(const util::URL& rURL, const uno::Sequence<beans::PropertyValue>& /*rArgs*/)
+void collectUIInformation(const util::URL& rURL)
{
static const char* pFile = std::getenv("LO_COLLECT_UIINFO");
if (!pFile)
@@ -613,7 +613,7 @@ void SAL_CALL SfxDispatchController_Impl::dispatch( const css::util::URL& aURL,
const css::uno::Reference< css::frame::XDispatchResultListener >& rListener )
{
collectUsageInformation(aURL, aArgs);
- collectUIInformation(aURL, aArgs);
+ collectUIInformation(aURL);
SolarMutexGuard aGuard;
if (
diff --git a/sfx2/source/doc/new.cxx b/sfx2/source/doc/new.cxx
index 2ea3dc84dc2d..8ffb28820072 100644
--- a/sfx2/source/doc/new.cxx
+++ b/sfx2/source/doc/new.cxx
@@ -66,7 +66,7 @@ Size SfxPreviewBase_Impl::GetOptimalSize() const
return LogicToPixel(Size(127, 129), MapUnit::MapAppFont);
}
-void SfxPreviewWin_Impl::ImpPaint(vcl::RenderContext& rRenderContext, const tools::Rectangle& /*rRect*/, GDIMetaFile* pFile)
+void SfxPreviewWin_Impl::ImpPaint(vcl::RenderContext& rRenderContext, GDIMetaFile* pFile)
{
rRenderContext.SetLineColor();
Color aLightGrayCol(COL_LIGHTGRAY);
@@ -111,9 +111,9 @@ void SfxPreviewWin_Impl::ImpPaint(vcl::RenderContext& rRenderContext, const tool
}
}
-void SfxPreviewWin_Impl::Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle& rRect)
+void SfxPreviewWin_Impl::Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle& /*rRect*/)
{
- ImpPaint(rRenderContext, rRect, xMetaFile.get());
+ ImpPaint(rRenderContext, xMetaFile.get());
}
extern "C" SAL_DLLPUBLIC_EXPORT void SAL_CALL makeSfxPreviewWin(VclPtr<vcl::Window> & rRet, VclPtr<vcl::Window> & pParent, VclBuilder::stringmap &)
diff --git a/sfx2/source/inc/preview.hxx b/sfx2/source/inc/preview.hxx
index f40b4974d33b..890d9b2298df 100644
--- a/sfx2/source/inc/preview.hxx
+++ b/sfx2/source/inc/preview.hxx
@@ -45,7 +45,7 @@ public:
: SfxPreviewBase_Impl(pParent, nStyle)
{}
- static void ImpPaint(vcl::RenderContext& rRenderContext, const tools::Rectangle& rRect, GDIMetaFile* pFile);
+ static void ImpPaint(vcl::RenderContext& rRenderContext, GDIMetaFile* pFile);
};
#endif