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

Unified Diff: content/common/gpu/media/tegra_v4l2_video_device.cc

Issue 649533003: C++11 declares a type safe null pointer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Presubmit errors Created 6 years, 2 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 | « content/common/gpu/media/rendering_helper.cc ('k') | content/common/gpu/media/v4l2_image_processor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/media/tegra_v4l2_video_device.cc
diff --git a/content/common/gpu/media/tegra_v4l2_video_device.cc b/content/common/gpu/media/tegra_v4l2_video_device.cc
index 991f54a76d3fdfa0dc541795df2a8a5f957d2867..d8387d1d9fd013f97b398a21c0259c1ce52de9fc 100644
--- a/content/common/gpu/media/tegra_v4l2_video_device.cc
+++ b/content/common/gpu/media/tegra_v4l2_video_device.cc
@@ -36,7 +36,7 @@ typedef int32 (*TegraV4L2UseEglImage)(int fd,
unsigned int buffer_index,
void* egl_image);
-#define TEGRAV4L2_SYM(name) TegraV4L2##name TegraV4L2_##name = NULL
+#define TEGRAV4L2_SYM(name) TegraV4L2##name TegraV4L2_##name = nullptr
TEGRAV4L2_SYM(Open);
TEGRAV4L2_SYM(Close);
@@ -62,7 +62,7 @@ class TegraFunctionSymbolFinder {
do { \
TegraV4L2_##name = reinterpret_cast<TegraV4L2##name>( \
dlsym(RTLD_DEFAULT, "TegraV4L2_" #name)); \
- if (TegraV4L2_##name == NULL) { \
+ if (TegraV4L2_##name == nullptr) { \
LOG(ERROR) << "Failed to dlsym TegraV4L2_" #name; \
return; \
} \
@@ -144,7 +144,7 @@ bool TegraV4L2Device::ClearDevicePollInterrupt() {
}
bool TegraV4L2Device::Initialize() {
- const char* device_path = NULL;
+ const char* device_path = nullptr;
switch (type_) {
case kDecoder:
device_path = kDecoderDevice;
« no previous file with comments | « content/common/gpu/media/rendering_helper.cc ('k') | content/common/gpu/media/v4l2_image_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698