diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:19:46 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:31:31 +0100 |
commit | 822a0b7046d8f0a8325ad158ea6756d33846c83e (patch) | |
tree | e1683caf123afd514361f85c389db52514d02890 /lotuswordpro/source/filter/benval.cxx | |
parent | loplugin:nullptr (automatic rewrite) (diff) | |
download | core-822a0b7046d8f0a8325ad158ea6756d33846c83e.tar.gz core-822a0b7046d8f0a8325ad158ea6756d33846c83e.zip |
loplugin:nullptr (automatic rewrite)
Change-Id: Id11454397abad090741c5d98e2ae585531c886f6
Diffstat (limited to 'lotuswordpro/source/filter/benval.cxx')
-rw-r--r-- | lotuswordpro/source/filter/benval.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lotuswordpro/source/filter/benval.cxx b/lotuswordpro/source/filter/benval.cxx index 239159eb9047..8c6a08f64263 100644 --- a/lotuswordpro/source/filter/benval.cxx +++ b/lotuswordpro/source/filter/benval.cxx @@ -62,8 +62,8 @@ unsigned long CBenValue::GetValueSize() { unsigned long Size = 0; - pCBenValueSegment pCurr = NULL; - while ((pCurr = GetNextValueSegment(pCurr)) != NULL) + pCBenValueSegment pCurr = nullptr; + while ((pCurr = GetNextValueSegment(pCurr)) != nullptr) Size += pCurr->GetSize(); return Size; } @@ -75,7 +75,7 @@ CBenValue::ReadValueData(void * pReadBuffer, unsigned long Offset, BenError Err; unsigned long SegOffset = 0; *pAmtRead = 0; - pCBenValueSegment pCurrSeg = NULL; + pCBenValueSegment pCurrSeg = nullptr; pLtcBenContainer pContainer = GetContainer(); BenByte* pBuffer = static_cast<BenByte*>(pReadBuffer); @@ -86,7 +86,7 @@ CBenValue::ReadValueData(void * pReadBuffer, unsigned long Offset, /// SegOffset -- current segment's start address offset, relative value in the whole value stream - while ((pCurrSeg = GetNextValueSegment(pCurrSeg)) != NULL) + while ((pCurrSeg = GetNextValueSegment(pCurrSeg)) != nullptr) { if (Amt == 0) /// whole buffer is full now, so return return BenErr_OK; |