Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(323)

Unified Diff: xfa/fxbarcode/oned/BC_OnedCode128Reader.cpp

Issue 2048983002: Get rid of NULLs in xfa/fxbarcode/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: nits Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « xfa/fxbarcode/oned/BC_OnedCodaBarWriter.cpp ('k') | xfa/fxbarcode/oned/BC_OnedCode128Writer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: xfa/fxbarcode/oned/BC_OnedCode128Reader.cpp
diff --git a/xfa/fxbarcode/oned/BC_OnedCode128Reader.cpp b/xfa/fxbarcode/oned/BC_OnedCode128Reader.cpp
index a0479e7f6daf25e3b7c2eb9205ab6e4598bd99db..b868327a379fe1cb562f2645edc39fdd5dbdbac9 100644
--- a/xfa/fxbarcode/oned/BC_OnedCode128Reader.cpp
+++ b/xfa/fxbarcode/oned/BC_OnedCode128Reader.cpp
@@ -105,7 +105,7 @@ CFX_Int32Array* CBC_OnedCode128Reader::FindStartPattern(CBC_CommonBitArray* row,
FX_BOOL btemp2 =
row->IsRange(std::max(0, patternStart - (i - patternStart) / 2),
patternStart, FALSE, e);
- BC_EXCEPTION_CHECK_ReturnValue(e, NULL);
+ BC_EXCEPTION_CHECK_ReturnValue(e, nullptr);
if (btemp2) {
CFX_Int32Array* result = new CFX_Int32Array;
result->SetSize(3);
@@ -130,7 +130,7 @@ CFX_Int32Array* CBC_OnedCode128Reader::FindStartPattern(CBC_CommonBitArray* row,
}
}
e = BCExceptionNotFound;
- return NULL;
+ return nullptr;
}
int32_t CBC_OnedCode128Reader::DecodeCode(CBC_CommonBitArray* row,
CFX_Int32Array* counters,
@@ -176,7 +176,7 @@ CFX_ByteString CBC_OnedCode128Reader::DecodeRow(int32_t rowNumber,
if (startPatternInfo) {
startPatternInfo->RemoveAll();
delete startPatternInfo;
- startPatternInfo = NULL;
+ startPatternInfo = nullptr;
}
e = BCExceptionFormatException;
return "";
@@ -189,7 +189,7 @@ CFX_ByteString CBC_OnedCode128Reader::DecodeRow(int32_t rowNumber,
if (startPatternInfo) {
startPatternInfo->RemoveAll();
delete startPatternInfo;
- startPatternInfo = NULL;
+ startPatternInfo = nullptr;
}
CFX_Int32Array counters;
counters.SetSize(6);
« no previous file with comments | « xfa/fxbarcode/oned/BC_OnedCodaBarWriter.cpp ('k') | xfa/fxbarcode/oned/BC_OnedCode128Writer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698