summaryrefslogtreecommitdiff
path: root/svx/source/dialog/graphctl.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-06-02 14:53:50 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-06-06 07:01:51 +0000
commit7d1b01070c330d45212cd69ea692b2263c23c2a6 (patch)
tree7ae6ecdd69cd3d8b6ce4431a39034186695497c0 /svx/source/dialog/graphctl.cxx
parent9f138ffe9da2f448a455f4b51facab82e5e243d7 (diff)
remove some manual ref counting in svx and xmloff
Change-Id: Ica0b6ff8ff7fa9e65cd758160d6e3ea7110ebb46 Reviewed-on: https://gerrit.libreoffice.org/25824 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'svx/source/dialog/graphctl.cxx')
-rw-r--r--svx/source/dialog/graphctl.cxx10
1 files changed, 4 insertions, 6 deletions
diff --git a/svx/source/dialog/graphctl.cxx b/svx/source/dialog/graphctl.cxx
index fac0708ce3fe..05a687f88a63 100644
--- a/svx/source/dialog/graphctl.cxx
+++ b/svx/source/dialog/graphctl.cxx
@@ -64,7 +64,6 @@ GraphCtrl::GraphCtrl( vcl::Window* pParent, WinBits nStyle ) :
bEditMode ( false ),
bSdrMode ( false ),
bAnim ( false ),
- mpAccContext ( nullptr ),
pModel ( nullptr ),
pView ( nullptr )
{
@@ -93,10 +92,10 @@ void GraphCtrl::dispose()
{
aUpdateIdle.Stop();
- if( mpAccContext )
+ if( mpAccContext.is() )
{
mpAccContext->disposing();
- mpAccContext->release();
+ mpAccContext.clear();
}
delete pView;
pView = nullptr;
@@ -166,7 +165,7 @@ void GraphCtrl::InitSdrModel()
pView->SetBufferedOverlayAllowed(true);
// Tell the accessibility object about the changes.
- if (mpAccContext != nullptr)
+ if (mpAccContext.is())
mpAccContext->setModelAndView (pModel, pView);
}
@@ -769,12 +768,11 @@ css::uno::Reference< css::accessibility::XAccessible > GraphCtrl::CreateAccessib
xAccParent.is() )
{
mpAccContext = new SvxGraphCtrlAccessibleContext( xAccParent, *this );
- mpAccContext->acquire();
}
}
}
- return mpAccContext;
+ return mpAccContext.get();
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */