From 1aa31294b2d3fb562ba33d5d873da62439944f07 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 25 Jan 2021 20:25:51 +0200 Subject: 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 --- forms/source/richtext/richtextcontrol.cxx | 2 +- forms/source/solar/component/navbarcontrol.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'forms') diff --git a/forms/source/richtext/richtextcontrol.cxx b/forms/source/richtext/richtextcontrol.cxx index 1514eca99729..88f62848063a 100644 --- a/forms/source/richtext/richtextcontrol.cxx +++ b/forms/source/richtext/richtextcontrol.cxx @@ -179,7 +179,7 @@ namespace frm { VCLXWindow* pParentXWin = comphelper::getUnoTunnelImplementation( _rParentPeer ); if ( pParentXWin ) - pParentWin = pParentXWin->GetWindow().get(); + pParentWin = pParentXWin->GetWindow(); DBG_ASSERT( pParentWin, "ORichTextControl::createPeer: could not obtain the VCL-level parent window!" ); } diff --git a/forms/source/solar/component/navbarcontrol.cxx b/forms/source/solar/component/navbarcontrol.cxx index ecaa9ba142a4..1f27aebe2564 100644 --- a/forms/source/solar/component/navbarcontrol.cxx +++ b/forms/source/solar/component/navbarcontrol.cxx @@ -125,7 +125,7 @@ namespace frm { VCLXWindow* pParentXWin = comphelper::getUnoTunnelImplementation( _rParentPeer ); if ( pParentXWin ) - pParentWin = pParentXWin->GetWindow().get(); + pParentWin = pParentXWin->GetWindow(); DBG_ASSERT( pParentWin, "ONavigationBarControl::createPeer: could not obtain the VCL-level parent window!" ); } -- cgit