From 65741289ea32fe642af179b732398c1c3e41911e Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Mon, 16 Mar 2015 17:28:03 +0000 Subject: cleanup Printer VclRef pieces. Change-Id: Ib47b2ec3cb54e374675981ad929856f43987418f --- extensions/source/propctrlr/browserline.cxx | 2 +- extensions/source/propctrlr/propcontroller.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'extensions/source') diff --git a/extensions/source/propctrlr/browserline.cxx b/extensions/source/propctrlr/browserline.cxx index ccc5b54a9642..9a8490511569 100644 --- a/extensions/source/propctrlr/browserline.cxx +++ b/extensions/source/propctrlr/browserline.cxx @@ -109,7 +109,7 @@ namespace pcr void OBrowserLine::setControl( const Reference< XPropertyControl >& _rxControl ) { m_xControl = _rxControl; - m_pControlWindow = m_xControl.is() ? VCLUnoHelper::GetWindow( _rxControl->getControlWindow() ) : NULL; + m_pControlWindow = m_xControl.is() ? VCLUnoHelper::GetWindow( _rxControl->getControlWindow() ) : VclPtr(); DBG_ASSERT( m_pControlWindow, "OBrowserLine::setControl: setting NULL controls/windows is not allowed!" ); if ( m_pControlWindow ) diff --git a/extensions/source/propctrlr/propcontroller.cxx b/extensions/source/propctrlr/propcontroller.cxx index 95786ad18e65..66cea9ec4684 100644 --- a/extensions/source/propctrlr/propcontroller.cxx +++ b/extensions/source/propctrlr/propcontroller.cxx @@ -375,7 +375,7 @@ namespace pcr // announcement is responsible for calling setComponent, too. Reference< XWindow > xContainerWindow = m_xFrame->getContainerWindow(); VCLXWindow* pContainerWindow = VCLXWindow::GetImplementation(xContainerWindow); - vcl::Window* pParentWin = pContainerWindow ? pContainerWindow->GetWindow() : NULL; + VclPtr pParentWin = pContainerWindow ? pContainerWindow->GetWindow() : VclPtr(); if (!pParentWin) throw RuntimeException("The frame is invalid. Unable to extract the container window.",*this); -- cgit