Kaydet (Commit) 5b5f3ccd authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:unusedmethods unused return value in vbahelper/

Change-Id: I654f1b2d3a488e147acdeb790ce9a9ff3dde61f1
üst 5ec991b6
...@@ -160,16 +160,13 @@ void VbaCommandBarHelper::ApplyChange( const OUString& sResourceUrl, const css:: ...@@ -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 ); uno::Reference< css::ui::XUIConfigurationPersistence > xConfigPersistence( m_xDocCfgMgr, uno::UNO_QUERY_THROW );
bool result = false;
if( xConfigPersistence->isModified() ) if( xConfigPersistence->isModified() )
{ {
xConfigPersistence->store(); xConfigPersistence->store();
result = true;
} }
return result;
} }
uno::Reference< frame::XLayoutManager > VbaCommandBarHelper::getLayoutManager() throw (uno::RuntimeException) uno::Reference< frame::XLayoutManager > VbaCommandBarHelper::getLayoutManager() throw (uno::RuntimeException)
......
...@@ -69,7 +69,7 @@ public: ...@@ -69,7 +69,7 @@ public:
{ {
return m_xWindowState; 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); css::uno::Reference< css::container::XIndexAccess > getSettings( const OUString& sResourceUrl ) throw (css::uno::RuntimeException);
void removeSettings( 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); void ApplyChange( const OUString& sResourceUrl, const css::uno::Reference< css::container::XIndexAccess >& xSettings, bool bTemporary = true ) throw (css::uno::RuntimeException);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment