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

Unified Diff: xfa/fxbarcode/qrcode/BC_QRCoderErrorCorrectionLevel.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/qrcode/BC_QRCoderEncoder.cpp ('k') | xfa/fxbarcode/qrcode/BC_QRCoderMatrixUtil.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: xfa/fxbarcode/qrcode/BC_QRCoderErrorCorrectionLevel.cpp
diff --git a/xfa/fxbarcode/qrcode/BC_QRCoderErrorCorrectionLevel.cpp b/xfa/fxbarcode/qrcode/BC_QRCoderErrorCorrectionLevel.cpp
index a1ce747b40f48ecc3ff14e8cd4527ff6d5982406..c6a81fab4889769424549da5b34fbb0ee0371165 100644
--- a/xfa/fxbarcode/qrcode/BC_QRCoderErrorCorrectionLevel.cpp
+++ b/xfa/fxbarcode/qrcode/BC_QRCoderErrorCorrectionLevel.cpp
@@ -22,10 +22,10 @@
#include "xfa/fxbarcode/qrcode/BC_QRCoderErrorCorrectionLevel.h"
-CBC_QRCoderErrorCorrectionLevel* CBC_QRCoderErrorCorrectionLevel::L = NULL;
-CBC_QRCoderErrorCorrectionLevel* CBC_QRCoderErrorCorrectionLevel::M = NULL;
-CBC_QRCoderErrorCorrectionLevel* CBC_QRCoderErrorCorrectionLevel::Q = NULL;
-CBC_QRCoderErrorCorrectionLevel* CBC_QRCoderErrorCorrectionLevel::H = NULL;
+CBC_QRCoderErrorCorrectionLevel* CBC_QRCoderErrorCorrectionLevel::L = nullptr;
+CBC_QRCoderErrorCorrectionLevel* CBC_QRCoderErrorCorrectionLevel::M = nullptr;
+CBC_QRCoderErrorCorrectionLevel* CBC_QRCoderErrorCorrectionLevel::Q = nullptr;
+CBC_QRCoderErrorCorrectionLevel* CBC_QRCoderErrorCorrectionLevel::H = nullptr;
CBC_QRCoderErrorCorrectionLevel::CBC_QRCoderErrorCorrectionLevel(
int32_t ordinal,
@@ -69,24 +69,24 @@ CBC_QRCoderErrorCorrectionLevel* CBC_QRCoderErrorCorrectionLevel::ForBits(
case 0x03:
return Q;
default:
- return NULL;
+ return nullptr;
}
}
void CBC_QRCoderErrorCorrectionLevel::Destroy() {
if (L) {
delete CBC_QRCoderErrorCorrectionLevel::L;
- L = NULL;
+ L = nullptr;
}
if (M) {
delete CBC_QRCoderErrorCorrectionLevel::M;
- M = NULL;
+ M = nullptr;
}
if (H) {
delete CBC_QRCoderErrorCorrectionLevel::H;
- H = NULL;
+ H = nullptr;
}
if (Q) {
delete CBC_QRCoderErrorCorrectionLevel::Q;
- Q = NULL;
+ Q = nullptr;
}
}
« no previous file with comments | « xfa/fxbarcode/qrcode/BC_QRCoderEncoder.cpp ('k') | xfa/fxbarcode/qrcode/BC_QRCoderMatrixUtil.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698