summaryrefslogtreecommitdiff
path: root/accessibility/source/extended
diff options
context:
space:
mode:
authorArnaud Versini <arnaud.versini@gmail.com>2017-05-21 15:19:26 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-05-21 21:00:39 +0200
commitfd26c3199d6e0f537ecad21ac2ef465c80bc8b90 (patch)
tree6ace7a6c3160a4c44dc2e8c35e84b795494ac62f /accessibility/source/extended
parentee79b9875ce4914c950c349c61f39e6dfdd0cc6b (diff)
accessibility: avoid useless allocation of a VCLExternalLock
Change-Id: I4f95d38e0f3d139eded37dac10946084cfd11acd Reviewed-on: https://gerrit.libreoffice.org/37874 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'accessibility/source/extended')
-rw-r--r--accessibility/source/extended/accessibletabbarbase.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/accessibility/source/extended/accessibletabbarbase.cxx b/accessibility/source/extended/accessibletabbarbase.cxx
index ba7e129f5c8b..fcdc854df87c 100644
--- a/accessibility/source/extended/accessibletabbarbase.cxx
+++ b/accessibility/source/extended/accessibletabbarbase.cxx
@@ -30,17 +30,15 @@ namespace accessibility
AccessibleTabBarBase::AccessibleTabBarBase( TabBar* pTabBar ) :
- OAccessibleExtendedComponentHelper( new VCLExternalSolarLock ),
+ OAccessibleExtendedComponentHelper( &m_aLock ),
m_pTabBar( nullptr )
{
- m_pExternalLock = static_cast< VCLExternalSolarLock* >( getExternalLock() );
SetTabBarPointer( pTabBar );
}
AccessibleTabBarBase::~AccessibleTabBarBase()
{
ClearTabBarPointer();
- DELETEZ( m_pExternalLock );
}
IMPL_LINK( AccessibleTabBarBase, WindowEventListener, VclWindowEvent&, rEvent, void )