summaryrefslogtreecommitdiff
path: root/vbahelper
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-01-13 12:07:29 +0200
committerNoel Grandin <noel@peralex.com>2016-01-13 12:16:24 +0200
commit5b5f3ccdbb34687f85f68f9900d02432ad21f60a (patch)
treedf20b1061e952c9519ca82c5ca555d6147fab3f2 /vbahelper
parent5ec991b6fecba3f8bad120dd89bb4482d6498480 (diff)
loplugin:unusedmethods unused return value in vbahelper/
Change-Id: I654f1b2d3a488e147acdeb790ce9a9ff3dde61f1
Diffstat (limited to 'vbahelper')
-rw-r--r--vbahelper/source/vbahelper/vbacommandbarhelper.cxx5
-rw-r--r--vbahelper/source/vbahelper/vbacommandbarhelper.hxx2
2 files changed, 2 insertions, 5 deletions
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);