summaryrefslogtreecommitdiff
path: root/toolkit/source/controls
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2021-01-25 20:25:51 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-01-25 20:21:48 +0100
commit1aa31294b2d3fb562ba33d5d873da62439944f07 (patch)
tree79a604d51b0c54768c07ed8c4643cf43b29d8fca /toolkit/source/controls
parent2dbc9266ec2207c2719c0104168cfcad9f6948da (diff)
avoid some ref-counting
can just return a pointer here, instead of VclPtr. Change-Id: I9ab8962cbbe84ed4dfcfd658a6d758112914cb89 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109923 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'toolkit/source/controls')
-rw-r--r--toolkit/source/controls/accessiblecontrolcontext.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/toolkit/source/controls/accessiblecontrolcontext.cxx b/toolkit/source/controls/accessiblecontrolcontext.cxx
index 36b6287d65ec..cf4cf7207749 100644
--- a/toolkit/source/controls/accessiblecontrolcontext.cxx
+++ b/toolkit/source/controls/accessiblecontrolcontext.cxx
@@ -218,14 +218,14 @@ namespace toolkit
}
- VclPtr< vcl::Window > OAccessibleControlContext::implGetWindow( Reference< awt::XWindow >* _pxUNOWindow ) const
+ vcl::Window* OAccessibleControlContext::implGetWindow( Reference< awt::XWindow >* _pxUNOWindow ) const
{
Reference< awt::XControl > xControl( getAccessibleCreator(), UNO_QUERY );
Reference< awt::XWindow > xWindow;
if ( xControl.is() )
xWindow.set(xControl->getPeer(), css::uno::UNO_QUERY);
- VclPtr< vcl::Window > pWindow = xWindow.is() ? VCLUnoHelper::GetWindow( xWindow ) : VclPtr< vcl::Window >();
+ vcl::Window* pWindow = xWindow.is() ? VCLUnoHelper::GetWindow( xWindow ) : nullptr;
if ( _pxUNOWindow )
*_pxUNOWindow = xWindow;