diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:10:16 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:31:16 +0100 |
commit | 4b0a3da4c5303fc97658050cf790f956f298599a (patch) | |
tree | 43764a1843059b3cdcf2e008c6c06d6a2d8cb87b /basctl/source/dlged/propbrw.cxx | |
parent | 8697284d248f47dd4798f7ef49791fc7686f646d (diff) |
loplugin:nullptr (automatic rewrite)
Change-Id: I27f1d5ee55338372b1c24187b63d23ae39e0a8b3
Diffstat (limited to 'basctl/source/dlged/propbrw.cxx')
-rw-r--r-- | basctl/source/dlged/propbrw.cxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/basctl/source/dlged/propbrw.cxx b/basctl/source/dlged/propbrw.cxx index 544fbdec4b1b..0260d771f7ff 100644 --- a/basctl/source/dlged/propbrw.cxx +++ b/basctl/source/dlged/propbrw.cxx @@ -60,9 +60,9 @@ void PropBrw::Update( const SfxViewShell* pShell ) if (pIdeShell) ImplUpdate(pIdeShell->GetCurrentDocument(), pIdeShell->GetCurDlgView()); else if (pShell) - ImplUpdate(NULL, pShell->GetDrawView()); + ImplUpdate(nullptr, pShell->GetDrawView()); else - ImplUpdate(NULL, NULL); + ImplUpdate(nullptr, nullptr); } @@ -83,7 +83,7 @@ PropBrw::PropBrw (DialogWindowLayout& rLayout_): DockingWindow(&rLayout_), m_bInitialStateChange(true), m_xContextDocument(SfxViewShell::Current() ? SfxViewShell::Current()->GetCurrentDocument() : Reference<XModel>()), - pView(0) + pView(nullptr) { Size aPropWinSize(STD_WIN_SIZE_X,STD_WIN_SIZE_Y); SetMinOutputSizePixel(Size(STD_MIN_SIZE_X,STD_MIN_SIZE_Y)); @@ -204,11 +204,11 @@ void PropBrw::ImplDestroyController() implSetNewObject( Reference< XPropertySet >() ); if ( m_xMeAsFrame.is() ) - m_xMeAsFrame->setComponent( NULL, NULL ); + m_xMeAsFrame->setComponent( nullptr, nullptr ); Reference< XController > xAsXController( m_xBrowserController, UNO_QUERY ); if ( xAsXController.is() ) - xAsXController->attachFrame( NULL ); + xAsXController->attachFrame( nullptr ); try { @@ -249,7 +249,7 @@ Sequence< Reference< XInterface > > if (pCurrent->IsGroupObject()) { pGroupIterator.reset(new SdrObjListIter(*pCurrent->GetSubList())); - pCurrent = pGroupIterator->IsMore() ? pGroupIterator->Next() : NULL; + pCurrent = pGroupIterator->IsMore() ? pGroupIterator->Next() : nullptr; } while (pCurrent) @@ -262,7 +262,7 @@ Sequence< Reference< XInterface > > } // next element - pCurrent = pGroupIterator && pGroupIterator->IsMore() ? pGroupIterator->Next() : NULL; + pCurrent = pGroupIterator && pGroupIterator->IsMore() ? pGroupIterator->Next() : nullptr; } } @@ -458,7 +458,7 @@ void PropBrw::ImplUpdate( const Reference< XModel >& _rxContextDocument, SdrView if ( pView ) { EndListening( *(pView->GetModel()) ); - pView = NULL; + pView = nullptr; } if ( !pNewView ) @@ -480,8 +480,8 @@ void PropBrw::ImplUpdate( const Reference< XModel >& _rxContextDocument, SdrView if ( nMarkCount == 0 ) { EndListening( *(pView->GetModel()) ); - pView = NULL; - implSetNewObject( NULL ); + pView = nullptr; + implSetNewObject( nullptr ); return; } |