summaryrefslogtreecommitdiff
path: root/toolkit
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-07-02 22:28:14 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-07-02 22:28:14 +0200
commit62b8119c0d0b5da4e856e88a849754a2e26f612c (patch)
tree46af1c684e0bb69738843184057342f282e75955 /toolkit
parent9324834aa43e45b418f21e8a794aca05747e2bbb (diff)
loplugin:casttovoid: toolkit
Change-Id: I1e1c28eac866eba90a9039aab6e1d56b3f886b9e
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/source/awt/vclxdevice.cxx4
-rw-r--r--toolkit/source/awt/vclxwindows.cxx8
-rw-r--r--toolkit/source/controls/dialogcontrol.cxx10
-rw-r--r--toolkit/source/controls/tabpagemodel.cxx15
-rw-r--r--toolkit/source/controls/tree/treecontrol.cxx2
-rw-r--r--toolkit/source/controls/unocontrolmodel.cxx1
6 files changed, 7 insertions, 33 deletions
diff --git a/toolkit/source/awt/vclxdevice.cxx b/toolkit/source/awt/vclxdevice.cxx
index 3423197326c1..7c6567f5a771 100644
--- a/toolkit/source/awt/vclxdevice.cxx
+++ b/toolkit/source/awt/vclxdevice.cxx
@@ -225,7 +225,6 @@ VCLXVirtualDevice::~VCLXVirtualDevice()
css::awt::Point SAL_CALL VCLXDevice::convertPointToLogic( const css::awt::Point& aPoint, ::sal_Int16 TargetUnit )
{
- (void)aPoint;
SolarMutexGuard aGuard;
if (TargetUnit == css::util::MeasureUnit::PERCENT )
{
@@ -250,7 +249,6 @@ css::awt::Point SAL_CALL VCLXDevice::convertPointToLogic( const css::awt::Point&
css::awt::Point SAL_CALL VCLXDevice::convertPointToPixel( const css::awt::Point& aPoint, ::sal_Int16 SourceUnit )
{
- (void)aPoint;
SolarMutexGuard aGuard;
if (SourceUnit == css::util::MeasureUnit::PERCENT ||
SourceUnit == css::util::MeasureUnit::PIXEL )
@@ -274,7 +272,6 @@ css::awt::Point SAL_CALL VCLXDevice::convertPointToPixel( const css::awt::Point&
css::awt::Size SAL_CALL VCLXDevice::convertSizeToLogic( const css::awt::Size& aSize, ::sal_Int16 TargetUnit )
{
- (void)aSize;
SolarMutexGuard aGuard;
if (TargetUnit == css::util::MeasureUnit::PERCENT)
{
@@ -299,7 +296,6 @@ css::awt::Size SAL_CALL VCLXDevice::convertSizeToLogic( const css::awt::Size& aS
css::awt::Size SAL_CALL VCLXDevice::convertSizeToPixel( const css::awt::Size& aSize, ::sal_Int16 SourceUnit )
{
- (void)aSize;
SolarMutexGuard aGuard;
if (SourceUnit == css::util::MeasureUnit::PERCENT ||
SourceUnit == css::util::MeasureUnit::PIXEL)
diff --git a/toolkit/source/awt/vclxwindows.cxx b/toolkit/source/awt/vclxwindows.cxx
index 84c3bd32ec04..9abc5eca60ab 100644
--- a/toolkit/source/awt/vclxwindows.cxx
+++ b/toolkit/source/awt/vclxwindows.cxx
@@ -2101,7 +2101,7 @@ void SAL_CALL VCLXListBox::listItemModified( const ItemListEvent& i_rEvent )
pListBox->InsertEntry( sNewText, aNewImage, i_rEvent.ItemPosition );
}
-void SAL_CALL VCLXListBox::allItemsRemoved( const EventObject& i_rEvent )
+void SAL_CALL VCLXListBox::allItemsRemoved( const EventObject& )
{
SolarMutexGuard aGuard;
@@ -2109,8 +2109,6 @@ void SAL_CALL VCLXListBox::allItemsRemoved( const EventObject& i_rEvent )
ENSURE_OR_RETURN_VOID( pListBox, "VCLXListBox::listItemModified: no ListBox?!" );
pListBox->Clear();
-
- (void)i_rEvent;
}
void SAL_CALL VCLXListBox::itemListChanged( const EventObject& i_rEvent )
@@ -4543,7 +4541,7 @@ void SAL_CALL VCLXComboBox::listItemModified( const ItemListEvent& i_rEvent )
pComboBox->InsertEntryWithImage(sNewText, aNewImage, i_rEvent.ItemPosition);
}
-void SAL_CALL VCLXComboBox::allItemsRemoved( const EventObject& i_rEvent )
+void SAL_CALL VCLXComboBox::allItemsRemoved( const EventObject& )
{
SolarMutexGuard aGuard;
@@ -4551,8 +4549,6 @@ void SAL_CALL VCLXComboBox::allItemsRemoved( const EventObject& i_rEvent )
ENSURE_OR_RETURN_VOID( pComboBox, "VCLXComboBox::listItemModified: no ComboBox?!" );
pComboBox->Clear();
-
- (void)i_rEvent;
}
void SAL_CALL VCLXComboBox::itemListChanged( const EventObject& i_rEvent )
diff --git a/toolkit/source/controls/dialogcontrol.cxx b/toolkit/source/controls/dialogcontrol.cxx
index 48a8664ed9be..4aee2bc88418 100644
--- a/toolkit/source/controls/dialogcontrol.cxx
+++ b/toolkit/source/controls/dialogcontrol.cxx
@@ -551,15 +551,9 @@ void SAL_CALL UnoDialogControl::windowMoved( const css::awt::WindowEvent& e )
}
}
-void SAL_CALL UnoDialogControl::windowShown( const EventObject& e )
-{
- (void)e;
-}
+void SAL_CALL UnoDialogControl::windowShown( const EventObject& ) {}
-void SAL_CALL UnoDialogControl::windowHidden( const EventObject& e )
-{
- (void)e;
-}
+void SAL_CALL UnoDialogControl::windowHidden( const EventObject& ) {}
void SAL_CALL UnoDialogControl::endDialog( ::sal_Int32 i_result )
{
diff --git a/toolkit/source/controls/tabpagemodel.cxx b/toolkit/source/controls/tabpagemodel.cxx
index b8f67f88f86c..7b0e3d8ebb5d 100644
--- a/toolkit/source/controls/tabpagemodel.cxx
+++ b/toolkit/source/controls/tabpagemodel.cxx
@@ -141,10 +141,7 @@ void SAL_CALL UnoControlTabPageModel::initialize (const Sequence<Any>& rArgument
xDialogModel->removeByName(*pIter);
insertByName(*pIter,aElement);
}
- catch(const Exception& ex)
- {
- (void)ex;
- }
+ catch(const Exception&) {}
}
Reference<XPropertySet> xDialogProp(xDialogModel,UNO_QUERY);
if ( xDialogProp.is() )
@@ -296,15 +293,9 @@ void SAL_CALL UnoControlTabPage::windowMoved( const css::awt::WindowEvent& e )
}
}
-void SAL_CALL UnoControlTabPage::windowShown( const css::lang::EventObject& e )
-{
- (void)e;
-}
+void SAL_CALL UnoControlTabPage::windowShown( const css::lang::EventObject& ) {}
-void SAL_CALL UnoControlTabPage::windowHidden( const css::lang::EventObject& e )
-{
- (void)e;
-}
+void SAL_CALL UnoControlTabPage::windowHidden( const css::lang::EventObject& ) {}
extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL
stardiv_Toolkit_UnoControlTabPageModel_get_implementation(
diff --git a/toolkit/source/controls/tree/treecontrol.cxx b/toolkit/source/controls/tree/treecontrol.cxx
index 3cba6623cd6c..38b263ba30f0 100644
--- a/toolkit/source/controls/tree/treecontrol.cxx
+++ b/toolkit/source/controls/tree/treecontrol.cxx
@@ -478,7 +478,6 @@ void SAL_CALL TreeEditListenerMultiplexer::nodeEditing( const Reference< XTreeNo
}
catch( const RuntimeException& e )
{
- (void)e;
DISPLAY_EXCEPTION( TreeEditListenerMultiplexer, nodeEditing, e )
}
}
@@ -502,7 +501,6 @@ void SAL_CALL TreeEditListenerMultiplexer::nodeEdited( const Reference< XTreeNod
}
catch( const RuntimeException& e )
{
- (void)e;
DISPLAY_EXCEPTION( TreeEditListenerMultiplexer, nodeEdited, e )
}
}
diff --git a/toolkit/source/controls/unocontrolmodel.cxx b/toolkit/source/controls/unocontrolmodel.cxx
index 1c77f79617bd..5e2c62f17d33 100644
--- a/toolkit/source/controls/unocontrolmodel.cxx
+++ b/toolkit/source/controls/unocontrolmodel.cxx
@@ -372,7 +372,6 @@ css::uno::Any UnoControlModel::ImplGetDefaultValue( sal_uInt16 nPropId ) const
break;
}
DBG_ASSERT( bLegacy || pAllCurrencies != pAllCurrenciesEnd, "UnoControlModel::ImplGetDefaultValue: did not find the given bank symbol!" );
- (void)bLegacy;
}
aDefault <<= sCurrencySymbol;