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

Unified Diff: webrtc/video/overuse_frame_detector.cc

Issue 1855433002: Replace NULL with nullptr in webrtc/video. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: replace x == nullptr with !x Created 4 years, 9 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 | « webrtc/video/end_to_end_tests.cc ('k') | webrtc/video/payload_router_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/video/overuse_frame_detector.cc
diff --git a/webrtc/video/overuse_frame_detector.cc b/webrtc/video/overuse_frame_detector.cc
index 522a505594052abdf3481e020b86e46ba9c260f5..1ce97771ee1d9348c5545850fe51f0316576c143 100644
--- a/webrtc/video/overuse_frame_detector.cc
+++ b/webrtc/video/overuse_frame_detector.cc
@@ -193,7 +193,7 @@ OveruseFrameDetector::OveruseFrameDetector(
in_quick_rampup_(false),
current_rampup_delay_ms_(kStandardRampUpDelayMs),
usage_(new SendProcessingUsage(options)) {
- RTC_DCHECK(metrics_observer != nullptr);
+ RTC_DCHECK(metrics_observer);
processing_thread_.DetachFromThread();
}
@@ -341,13 +341,13 @@ void OveruseFrameDetector::Process() {
checks_above_threshold_ = 0;
++num_overuse_detections_;
- if (observer_ != NULL)
+ if (observer_)
observer_->OveruseDetected();
} else if (IsUnderusing(current_metrics, now)) {
last_rampup_time_ms_ = now;
in_quick_rampup_ = true;
- if (observer_ != NULL)
+ if (observer_)
observer_->NormalUsage();
}
« no previous file with comments | « webrtc/video/end_to_end_tests.cc ('k') | webrtc/video/payload_router_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698