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

Unified Diff: webrtc/video/replay.cc

Issue 1855433002: Replace NULL with nullptr in webrtc/video. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: nit 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
Index: webrtc/video/replay.cc
diff --git a/webrtc/video/replay.cc b/webrtc/video/replay.cc
index affd033ff9d88fa22524ce7847eeb6e9dbf0412d..1830d515020b60ee95ff73cc9fab1c9cb096c92f 100644
--- a/webrtc/video/replay.cc
+++ b/webrtc/video/replay.cc
@@ -148,19 +148,19 @@ class FileRenderPassthrough : public rtc::VideoSinkInterface<VideoFrame> {
last_height_(0) {}
~FileRenderPassthrough() {
- if (file_ != nullptr)
+ if (file_)
fclose(file_);
}
private:
void OnFrame(const VideoFrame& video_frame) override {
- if (renderer_ != nullptr)
+ if (renderer_)
renderer_->OnFrame(video_frame);
if (basename_.empty())
return;
if (last_width_ != video_frame.width() ||
last_height_ != video_frame.height()) {
- if (file_ != nullptr)
+ if (file_)
fclose(file_);
std::stringstream filename;
filename << basename_;
@@ -194,7 +194,7 @@ class DecoderBitstreamFileWriter : public EncodedFrameObserver {
public:
explicit DecoderBitstreamFileWriter(const char* filename)
: file_(fopen(filename, "wb")) {
- RTC_DCHECK(file_ != nullptr);
+ RTC_DCHECK(file_);
}
~DecoderBitstreamFileWriter() { fclose(file_); }

Powered by Google App Engine
This is Rietveld 408576698