diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-02-22 15:24:59 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-02-23 07:30:03 +0100 |
commit | d3d8618608ec0f329a40e029de951374871a8de0 (patch) | |
tree | df667e02164bc994408212a345c7c11dd37518ac /scripting | |
parent | 77fe54df21195a1b0483fb06466ced935a186030 (diff) |
loplugin:unusedfields in sc
Change-Id: I5e9842970821d0ae61e06e3ad35c9f571b43632c
Reviewed-on: https://gerrit.libreoffice.org/68224
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'scripting')
-rw-r--r-- | scripting/source/vbaevents/eventhelper.cxx | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/scripting/source/vbaevents/eventhelper.cxx b/scripting/source/vbaevents/eventhelper.cxx index 405ad6b4747b..b44b9c87acb6 100644 --- a/scripting/source/vbaevents/eventhelper.cxx +++ b/scripting/source/vbaevents/eventhelper.cxx @@ -612,7 +612,6 @@ private: Reference< frame::XModel > m_xModel; bool m_bDocClosed; SfxObjectShell* mpShell; - OUString msProject; }; EventListener::EventListener() : @@ -620,7 +619,6 @@ OPropertyContainer(GetBroadcastHelper()), m_bDocClosed(false), mpShell( nullptr { registerProperty( EVENTLSTNR_PROPERTY_MODEL, EVENTLSTNR_PROPERTY_ID_MODEL, beans::PropertyAttribute::TRANSIENT, &m_xModel, cppu::UnoType<decltype(m_xModel)>::get() ); - msProject = "Standard"; } void @@ -638,14 +636,6 @@ EventListener::setShellFromModel() } pShell = SfxObjectShell::GetNext( *pShell ); } - // set ProjectName from model - try - { - uno::Reference< beans::XPropertySet > xProps( m_xModel, UNO_QUERY_THROW ); - uno::Reference< script::vba::XVBACompatibility > xVBAMode( xProps->getPropertyValue("BasicLibraries"), uno::UNO_QUERY_THROW ); - msProject = xVBAMode->getProjectName(); - } - catch ( uno::Exception& ) {} } //XEventListener |