summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-07-04 08:13:10 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-07-04 08:15:08 +0200
commitf1cef09fcda11e321f8b01ab4600c28339dec45a (patch)
treebc71552f9c3111aab5cc8a49d53c51c2a6907182
parent0cc53919440f150f4bfedb7a5b88cdb0cf3317dc (diff)
loplugin:casttovoid
...cases that were initially missed due to the broken containsProcessingConditionalInclusion() Change-Id: Ib7d801ab5173ee590ef35a9e075d3ce4d4aa06da
-rw-r--r--basctl/source/basicide/register.cxx4
-rw-r--r--basctl/source/dlged/dlgedfunc.cxx3
-rw-r--r--connectivity/source/drivers/firebird/Services.cxx3
-rw-r--r--cui/source/customize/cfg.cxx4
-rw-r--r--cui/source/dialogs/screenshotannotationdlg.cxx4
-rw-r--r--scripting/source/protocolhandler/scripthandler.cxx4
-rw-r--r--svx/source/tbxctrls/tbcontrl.cxx3
-rw-r--r--vcl/unx/generic/gdi/gdiimpl.cxx11
-rw-r--r--vcl/unx/gtk3/gtk3gtkframe.cxx3
9 files changed, 13 insertions, 26 deletions
diff --git a/basctl/source/basicide/register.cxx b/basctl/source/basicide/register.cxx
index 30e06909c618..22d06f80bb2d 100644
--- a/basctl/source/basicide/register.cxx
+++ b/basctl/source/basicide/register.cxx
@@ -34,10 +34,8 @@ extern "C" {
SAL_DLLPUBLIC_EXPORT void* SAL_CALL basctl_component_getFactory( const sal_Char* pImplementationName,
void* pServiceManager,
- void* pRegistryKey )
+ void* )
{
- (void)pRegistryKey;
-
// Set default return value for this operation - if it failed.
void* pReturn = nullptr ;
diff --git a/basctl/source/dlged/dlgedfunc.cxx b/basctl/source/dlged/dlgedfunc.cxx
index 3da94728b3bc..d0bb7dc6e6b4 100644
--- a/basctl/source/dlged/dlgedfunc.cxx
+++ b/basctl/source/dlged/dlgedfunc.cxx
@@ -27,9 +27,8 @@
namespace basctl
{
-IMPL_LINK( DlgEdFunc, ScrollTimeout, Timer *, pTimer, void )
+IMPL_LINK_NOARG( DlgEdFunc, ScrollTimeout, Timer *, void )
{
- (void)pTimer;
vcl::Window& rWindow = rParent.GetWindow();
Point aPos = rWindow.ScreenToOutputPixel( rWindow.GetPointerPosPixel() );
aPos = rWindow.PixelToLogic( aPos );
diff --git a/connectivity/source/drivers/firebird/Services.cxx b/connectivity/source/drivers/firebird/Services.cxx
index 5a55c0f0703f..5f2c2e2fc9d5 100644
--- a/connectivity/source/drivers/firebird/Services.cxx
+++ b/connectivity/source/drivers/firebird/Services.cxx
@@ -80,9 +80,8 @@ struct ProviderRequest
extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL firebird_sdbc_component_getFactory(
const sal_Char* pImplementationName,
void* pServiceManager,
- void* pRegistryKey)
+ void*)
{
- (void) pRegistryKey;
void* pRet = nullptr;
if (pServiceManager)
{
diff --git a/cui/source/customize/cfg.cxx b/cui/source/customize/cfg.cxx
index a02a4d713243..d4788d7bf6ed 100644
--- a/cui/source/customize/cfg.cxx
+++ b/cui/source/customize/cfg.cxx
@@ -5128,10 +5128,8 @@ uno::Reference< graphic::XGraphic> SvxIconSelectorDialog::GetSelectedIcon()
return result;
}
-IMPL_LINK( SvxIconSelectorDialog, SelectHdl, ToolBox *, pToolBox, void )
+IMPL_LINK_NOARG( SvxIconSelectorDialog, SelectHdl, ToolBox *, void )
{
- (void)pToolBox;
-
ToolBox::ImplToolItems::size_type nCount = pTbSymbol->GetItemCount();
for (ToolBox::ImplToolItems::size_type n = 0; n < nCount; ++n )
diff --git a/cui/source/dialogs/screenshotannotationdlg.cxx b/cui/source/dialogs/screenshotannotationdlg.cxx
index eee87b28d7ed..d29e6995f7a4 100644
--- a/cui/source/dialogs/screenshotannotationdlg.cxx
+++ b/cui/source/dialogs/screenshotannotationdlg.cxx
@@ -312,10 +312,8 @@ ScreenshotAnnotationDlg_Impl::~ScreenshotAnnotationDlg_Impl()
mpVirtualBufferDevice.disposeAndClear();
}
-IMPL_LINK(ScreenshotAnnotationDlg_Impl, saveButtonHandler, Button*, pButton, void)
+IMPL_LINK_NOARG(ScreenshotAnnotationDlg_Impl, saveButtonHandler, Button*, void)
{
- (void)pButton;
-
// 'save screenshot...' pressed, offer to save maParentDialogBitmap
// as PNG image, use *.id file name as screenshot file name offering
OString aDerivedFileName;
diff --git a/scripting/source/protocolhandler/scripthandler.cxx b/scripting/source/protocolhandler/scripthandler.cxx
index 0dadac6520fb..08c226a62ad6 100644
--- a/scripting/source/protocolhandler/scripthandler.cxx
+++ b/scripting/source/protocolhandler/scripthandler.cxx
@@ -475,10 +475,8 @@ extern "C"
{
SAL_DLLPUBLIC_EXPORT void* SAL_CALL protocolhandler_component_getFactory( const sal_Char * pImplementationName ,
void * pServiceManager ,
- void * pRegistryKey )
+ void * )
{
- (void)pRegistryKey;
-
// Set default return value for this operation - if it failed.
void * pReturn = nullptr ;
diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx
index 648c8b0cff7c..7f9e0523056c 100644
--- a/svx/source/tbxctrls/tbcontrl.cxx
+++ b/svx/source/tbxctrls/tbcontrl.cxx
@@ -3293,9 +3293,8 @@ void SvxColorListBox::ShowPreview(const NamedColor &rColor)
SetText(rColor.second);
}
-IMPL_LINK(SvxColorListBox, MenuActivateHdl, MenuButton *, pBtn, void)
+IMPL_LINK_NOARG(SvxColorListBox, MenuActivateHdl, MenuButton *, void)
{
- (void)pBtn;
if (!m_xColorWindow || m_xColorWindow->isDisposed())
createColorWindow();
}
diff --git a/vcl/unx/generic/gdi/gdiimpl.cxx b/vcl/unx/generic/gdi/gdiimpl.cxx
index 421bab8dcc61..f218ef2d95c7 100644
--- a/vcl/unx/generic/gdi/gdiimpl.cxx
+++ b/vcl/unx/generic/gdi/gdiimpl.cxx
@@ -910,14 +910,13 @@ bool X11SalGraphicsImpl::drawAlphaBitmap( const SalTwoRect& rTR,
}
bool X11SalGraphicsImpl::drawTransformedBitmap(
- const basegfx::B2DPoint& rNull,
- const basegfx::B2DPoint& rX,
- const basegfx::B2DPoint& rY,
- const SalBitmap& rSourceBitmap,
- const SalBitmap* pAlphaBitmap)
+ const basegfx::B2DPoint&,
+ const basegfx::B2DPoint&,
+ const basegfx::B2DPoint&,
+ const SalBitmap&,
+ const SalBitmap*)
{
// here direct support for transformed bitmaps can be implemented
- (void)rNull; (void)rX; (void)rY; (void)rSourceBitmap; (void)pAlphaBitmap;
return false;
}
diff --git a/vcl/unx/gtk3/gtk3gtkframe.cxx b/vcl/unx/gtk3/gtk3gtkframe.cxx
index 5236ee407f04..a5d05e40bc21 100644
--- a/vcl/unx/gtk3/gtk3gtkframe.cxx
+++ b/vcl/unx/gtk3/gtk3gtkframe.cxx
@@ -2396,9 +2396,8 @@ void GtkSalFrame::SetParent( SalFrame* pNewParent )
);
}
-bool GtkSalFrame::SetPluginParent( SystemParentData* pSysParent )
+bool GtkSalFrame::SetPluginParent( SystemParentData* )
{
- (void)pSysParent;
//FIXME: no SetPluginParent impl. for gtk3
return false;
}