From badc759a8a97965bbc77aea6fb417c94a3e088a1 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Sun, 2 Jul 2017 22:32:29 +0200 Subject: loplugin:casttovoid: extensions Change-Id: I5922341e0bb74da854307e6cb0a004395f3e8851 --- extensions/source/bibliography/bibview.cxx | 7 ++----- extensions/source/bibliography/formcontrolcontainer.cxx | 3 +-- extensions/source/bibliography/general.cxx | 3 +-- 3 files changed, 4 insertions(+), 9 deletions(-) (limited to 'extensions/source/bibliography') diff --git a/extensions/source/bibliography/bibview.cxx b/extensions/source/bibliography/bibview.cxx index ae993379c67f..04f4f5e2698f 100644 --- a/extensions/source/bibliography/bibview.cxx +++ b/extensions/source/bibliography/bibview.cxx @@ -90,10 +90,7 @@ namespace bib else xResUpd->updateRow(); } - catch( const uno::Exception& rEx) - { - (void) rEx; - } + catch( const uno::Exception&) {} } } @@ -217,4 +214,4 @@ namespace bib } // namespace bib -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ \ No newline at end of file +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/extensions/source/bibliography/formcontrolcontainer.cxx b/extensions/source/bibliography/formcontrolcontainer.cxx index d0d7576af413..8019a772bdb0 100644 --- a/extensions/source/bibliography/formcontrolcontainer.cxx +++ b/extensions/source/bibliography/formcontrolcontainer.cxx @@ -98,9 +98,8 @@ namespace bib ControlModeSwitch( _bDesign ) ); } - catch( const Exception& e) + catch( const Exception&) { - (void) e; // make compiler happy OSL_FAIL( "FormControlContainer::implSetDesignMode: caught an exception!" ); } } diff --git a/extensions/source/bibliography/general.cxx b/extensions/source/bibliography/general.cxx index 9eccfef67a0d..8c14735756b2 100644 --- a/extensions/source/bibliography/general.cxx +++ b/extensions/source/bibliography/general.cxx @@ -517,9 +517,8 @@ uno::Reference< awt::XControlModel > BibGeneralPage::AddXControl( } } } - catch(const Exception& rEx) + catch(const Exception&) { - (void) rEx; // make compiler happy OSL_FAIL("BibGeneralPage::AddXControl: something went wrong!"); } return xCtrModel; -- cgit