diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:22:39 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:31:36 +0100 |
commit | de29ac09535d814e4be7e1bf0f10beb9f0f847e3 (patch) | |
tree | 139f75d657cb825622e812254b8b7df4e509140b /sc/source/filter/dif | |
parent | 60c40af090e420a8619b5236bde1ff4ef79100c6 (diff) |
loplugin:nullptr (automatic rewrite)
Change-Id: I765d2a600f9c57da50c85354688e3ae796750d94
Diffstat (limited to 'sc/source/filter/dif')
-rw-r--r-- | sc/source/filter/dif/difimp.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sc/source/filter/dif/difimp.cxx b/sc/source/filter/dif/difimp.cxx index 4bf44983add4..e9775a8e7a40 100644 --- a/sc/source/filter/dif/difimp.cxx +++ b/sc/source/filter/dif/difimp.cxx @@ -248,7 +248,7 @@ DifParser::DifParser( SvStream& rNewIn, const sal_uInt32 nOption, ScDocument& rD bPlain = ( nOption == SC_DIFOPT_PLAIN ); if( bPlain ) - pNumFormatter = NULL; + pNumFormatter = nullptr; else pNumFormatter = rDoc.GetFormatTable(); } @@ -612,7 +612,7 @@ const sal_Unicode* DifParser::ScanIntVal( const sal_Unicode* pStart, sal_uInt32& if( IsNumber( cAkt ) ) rRet = ( sal_uInt32 ) ( cAkt - '0' ); else - return NULL; + return nullptr; pStart++; cAkt = *pStart; @@ -807,7 +807,7 @@ bool DifParser::ScanFloatVal( const sal_Unicode* pStart ) } DifColumn::DifColumn () - : pAkt(NULL) + : pAkt(nullptr) { } @@ -824,7 +824,7 @@ void DifColumn::SetLogical( SCROW nRow ) if( pAkt->nEnd == nRow ) pAkt->nEnd++; else - pAkt = NULL; + pAkt = nullptr; } else { @@ -857,7 +857,7 @@ void DifColumn::SetNumFormat( SCROW nRow, const sal_uInt32 nNumFormat ) NewEntry(nRow,nNumFormat ); } else - pAkt = NULL; + pAkt = nullptr; } void DifColumn::NewEntry( const SCROW nPos, const sal_uInt32 nNumFormat ) @@ -898,7 +898,7 @@ DifAttrCache::DifAttrCache( const bool bNewPlain ) bPlain = bNewPlain; ppCols = new DifColumn *[ MAXCOL + 1 ]; for( SCCOL nCnt = 0 ; nCnt <= MAXCOL ; nCnt++ ) - ppCols[ nCnt ] = NULL; + ppCols[ nCnt ] = nullptr; } DifAttrCache::~DifAttrCache() |