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

Unified Diff: src/utils/SkBitSet.cpp

Issue 1316233002: Style Change: NULL->nullptr (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-08-27 (Thursday) 10:25:06 EDT Created 5 years, 4 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 | « src/utils/SkBase64.cpp ('k') | src/utils/SkBoundaryPatch.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/utils/SkBitSet.cpp
diff --git a/src/utils/SkBitSet.cpp b/src/utils/SkBitSet.cpp
index 63d18ff2f3d4593e3c34d4fcf147e37d68eace10..3ace15de80443ba4b27661e1ff708f66b2113ba1 100755
--- a/src/utils/SkBitSet.cpp
+++ b/src/utils/SkBitSet.cpp
@@ -10,7 +10,7 @@
#include "SkBitSet.h"
SkBitSet::SkBitSet(int numberOfBits)
- : fBitData(NULL), fDwordCount(0), fBitCount(numberOfBits) {
+ : fBitData(nullptr), fDwordCount(0), fBitCount(numberOfBits) {
SkASSERT(numberOfBits > 0);
// Round up size to 32-bit boundary.
fDwordCount = (numberOfBits + 31) / 32;
@@ -18,7 +18,7 @@ SkBitSet::SkBitSet(int numberOfBits)
}
SkBitSet::SkBitSet(const SkBitSet& source)
- : fBitData(NULL), fDwordCount(0), fBitCount(0) {
+ : fBitData(nullptr), fDwordCount(0), fBitCount(0) {
*this = source;
}
@@ -36,7 +36,7 @@ SkBitSet& SkBitSet::operator=(const SkBitSet& rhs) {
bool SkBitSet::operator==(const SkBitSet& rhs) {
if (fBitCount == rhs.fBitCount) {
- if (fBitData.get() != NULL) {
+ if (fBitData.get() != nullptr) {
return (memcmp(fBitData.get(), rhs.fBitData.get(),
fDwordCount * sizeof(uint32_t)) == 0);
}
@@ -50,7 +50,7 @@ bool SkBitSet::operator!=(const SkBitSet& rhs) {
}
void SkBitSet::clearAll() {
- if (fBitData.get() != NULL) {
+ if (fBitData.get() != nullptr) {
sk_bzero(fBitData.get(), fDwordCount * sizeof(uint32_t));
}
}
« no previous file with comments | « src/utils/SkBase64.cpp ('k') | src/utils/SkBoundaryPatch.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698