diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:25:17 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:31:48 +0100 |
commit | 28f4bee7bd7378141d8569186162e1a3166eb012 (patch) | |
tree | 97cb855eec76da937068cda5c5f0f7d5bcd61e47 /svtools/source/brwbox/brwbox1.cxx | |
parent | bf057fab3c0d17bf2832c8d9fc6d34b1b859e660 (diff) |
loplugin:nullptr (automatic rewrite)
Change-Id: I7fc4b4d5c895f241cfb052b009e943e073f3befe
Diffstat (limited to 'svtools/source/brwbox/brwbox1.cxx')
-rw-r--r-- | svtools/source/brwbox/brwbox1.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/svtools/source/brwbox/brwbox1.cxx b/svtools/source/brwbox/brwbox1.cxx index 037aa341b356..a69c17d65b6f 100644 --- a/svtools/source/brwbox/brwbox1.cxx +++ b/svtools/source/brwbox/brwbox1.cxx @@ -62,9 +62,9 @@ void BrowseBox::ConstructImpl( BrowserMode nMode ) { OSL_TRACE( "BrowseBox: %p->ConstructImpl", this ); bMultiSelection = false; - pColSel = 0; - pDataWin = 0; - pVScroll = 0; + pColSel = nullptr; + pDataWin = nullptr; + pVScroll = nullptr; pDataWin = VclPtr<BrowserDataWin>::Create( this ).get(); pCols = new BrowserColumns; @@ -1579,7 +1579,7 @@ bool BrowseBox::GoToColumnId( sal_uInt16 nColId, bool bMakeVisible, bool bRowCol if ( nColId != nCurColId || (bMakeVisible && !IsFieldVisible(nCurRow, nColId, true))) { sal_uInt16 nNewPos = GetColumnPos(nColId); - BrowserColumn* pColumn = (nNewPos < pCols->size()) ? (*pCols)[ nNewPos ] : NULL; + BrowserColumn* pColumn = (nNewPos < pCols->size()) ? (*pCols)[ nNewPos ] : nullptr; DBG_ASSERT( pColumn, "no column object - invalid id?" ); if ( !pColumn ) return false; @@ -2252,7 +2252,7 @@ void BrowseBox::SetMode( BrowserMode nMode ) BrowserMode::NO_SCROLLBACK == ( nMode & BrowserMode::NO_SCROLLBACK); long nOldRowSel = bMultiSelection ? uRow.pSel->FirstSelected() : uRow.nSel; - MultiSelection *pOldRowSel = bMultiSelection ? uRow.pSel : 0; + MultiSelection *pOldRowSel = bMultiSelection ? uRow.pSel : nullptr; MultiSelection *pOldColSel = pColSel; pVScroll.disposeAndClear(); @@ -2317,7 +2317,7 @@ void BrowseBox::SetMode( BrowserMode nMode ) else { delete pColSel; - pColSel = 0; + pColSel = nullptr; } if ( bMultiSelection ) |