From 5b5f3ccdbb34687f85f68f9900d02432ad21f60a Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 13 Jan 2016 12:07:29 +0200 Subject: loplugin:unusedmethods unused return value in vbahelper/ Change-Id: I654f1b2d3a488e147acdeb790ce9a9ff3dde61f1 --- vbahelper/source/vbahelper/vbacommandbarhelper.cxx | 5 +---- vbahelper/source/vbahelper/vbacommandbarhelper.hxx | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) (limited to 'vbahelper') diff --git a/vbahelper/source/vbahelper/vbacommandbarhelper.cxx b/vbahelper/source/vbahelper/vbacommandbarhelper.cxx index 8fbfd1b966c4..ecfd3355dba7 100644 --- a/vbahelper/source/vbahelper/vbacommandbarhelper.cxx +++ b/vbahelper/source/vbahelper/vbacommandbarhelper.cxx @@ -160,16 +160,13 @@ void VbaCommandBarHelper::ApplyChange( const OUString& sResourceUrl, const css:: } } -bool VbaCommandBarHelper::persistChanges() throw (css::uno::RuntimeException) +void VbaCommandBarHelper::persistChanges() throw (css::uno::RuntimeException) { uno::Reference< css::ui::XUIConfigurationPersistence > xConfigPersistence( m_xDocCfgMgr, uno::UNO_QUERY_THROW ); - bool result = false; if( xConfigPersistence->isModified() ) { xConfigPersistence->store(); - result = true; } - return result; } uno::Reference< frame::XLayoutManager > VbaCommandBarHelper::getLayoutManager() throw (uno::RuntimeException) diff --git a/vbahelper/source/vbahelper/vbacommandbarhelper.hxx b/vbahelper/source/vbahelper/vbacommandbarhelper.hxx index 08f6f13bc6d2..b54f0016ad4c 100644 --- a/vbahelper/source/vbahelper/vbacommandbarhelper.hxx +++ b/vbahelper/source/vbahelper/vbacommandbarhelper.hxx @@ -69,7 +69,7 @@ public: { return m_xWindowState; } - bool persistChanges() throw (css::uno::RuntimeException); + void persistChanges() throw (css::uno::RuntimeException); css::uno::Reference< css::container::XIndexAccess > getSettings( const OUString& sResourceUrl ) throw (css::uno::RuntimeException); void removeSettings( const OUString& sResourceUrl ) throw (css::uno::RuntimeException); void ApplyChange( const OUString& sResourceUrl, const css::uno::Reference< css::container::XIndexAccess >& xSettings, bool bTemporary = true ) throw (css::uno::RuntimeException); -- cgit