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

Unified Diff: content/common/gpu/media/h264_dpb.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
Index: content/common/gpu/media/h264_dpb.cc
diff --git a/content/common/gpu/media/h264_dpb.cc b/content/common/gpu/media/h264_dpb.cc
index 371d61283139a4df1084b653d6e645ae9edd8a8e..d248deec8ef65a71c217a8727f79a6862c7233b1 100644
--- a/content/common/gpu/media/h264_dpb.cc
+++ b/content/common/gpu/media/h264_dpb.cc
@@ -72,7 +72,7 @@ H264Picture* H264DPB::GetShortRefPicByPicNum(int pic_num) {
}
DVLOG(1) << "Missing short ref pic num: " << pic_num;
- return NULL;
+ return nullptr;
}
H264Picture* H264DPB::GetLongRefPicByLongTermPicNum(int pic_num) {
@@ -83,11 +83,11 @@ H264Picture* H264DPB::GetLongRefPicByLongTermPicNum(int pic_num) {
}
DVLOG(1) << "Missing long term pic num: " << pic_num;
- return NULL;
+ return nullptr;
}
H264Picture* H264DPB::GetLowestFrameNumWrapShortRefPic() {
- H264Picture* ret = NULL;
+ H264Picture* ret = nullptr;
for (size_t i = 0; i < pics_.size(); ++i) {
H264Picture* pic = pics_[i];
if (pic->ref && !pic->long_term &&
« no previous file with comments | « content/common/gpu/media/gpu_video_decode_accelerator.cc ('k') | content/common/gpu/media/rendering_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698