From de29ac09535d814e4be7e1bf0f10beb9f0f847e3 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 10 Nov 2015 10:22:39 +0100 Subject: loplugin:nullptr (automatic rewrite) Change-Id: I765d2a600f9c57da50c85354688e3ae796750d94 --- sc/source/ui/view/reffact.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'sc/source/ui/view/reffact.cxx') diff --git a/sc/source/ui/view/reffact.cxx b/sc/source/ui/view/reffact.cxx index 4c986dd94f2f..565d989d9ba1 100644 --- a/sc/source/ui/view/reffact.cxx +++ b/sc/source/ui/view/reffact.cxx @@ -140,7 +140,7 @@ ScSimpleRefDlgWrapper::ScSimpleRefDlgWrapper( vcl::Window* pParentP, : SfxChildWindow(pParentP, nId) { - ScTabViewShell* pViewShell = NULL; + ScTabViewShell* pViewShell = nullptr; SfxDispatcher* pDisp = p->GetDispatcher(); if ( pDisp ) { @@ -151,14 +151,14 @@ ScSimpleRefDlgWrapper::ScSimpleRefDlgWrapper( vcl::Window* pParentP, OSL_ENSURE( pViewShell, "missing view shell :-(" ); - if(pInfo!=NULL && bScSimpleRefFlag) + if(pInfo!=nullptr && bScSimpleRefFlag) { pInfo->aPos.X()=nScSimpleRefX; pInfo->aPos.Y()=nScSimpleRefY; pInfo->aSize.Height()=nScSimpleRefHeight; pInfo->aSize.Width()=nScSimpleRefWidth; } - SetWindow(NULL); + SetWindow(nullptr); if(bAutoReOpen && pViewShell) SetWindow( pViewShell->CreateRefDialog( p, this, pInfo, pParentP, WID_SIMPLE_REF) ); @@ -244,7 +244,7 @@ ScAcceptChgDlgWrapper::ScAcceptChgDlgWrapper( vcl::Window* pParentP, static_cast(GetWindow())->Initialize( pInfo ); } else - SetWindow( NULL ); + SetWindow( nullptr ); if (pViewShell && !GetWindow()) pViewShell->GetViewFrame()->SetChildWindow( nId, false ); } @@ -275,7 +275,7 @@ namespace if( SfxViewShell* pViewSh = pFrm->GetViewShell() ) return dynamic_cast( pViewSh ); - return NULL; + return nullptr; } } @@ -286,7 +286,7 @@ ScValidityRefChildWin::ScValidityRefChildWin( vcl::Window* pParent : SfxChildWindow(pParentP, nId), m_bVisibleLock( false ), m_bFreeWindowLock( false ), - m_pSavedWndParent( NULL ) + m_pSavedWndParent( nullptr ) { SetWantsFocus( false ); VclPtr pDlg = ScValidationDlg::Find1AliveObject( pParentP ); -- cgit