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

Unified Diff: webrtc/modules/desktop_capture/screen_capturer_x11.cc

Issue 2685783014: Replace NULL with nullptr in all C++ files. (Closed)
Patch Set: Fixing android. Created 3 years, 10 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/modules/desktop_capture/screen_capturer_x11.cc
diff --git a/webrtc/modules/desktop_capture/screen_capturer_x11.cc b/webrtc/modules/desktop_capture/screen_capturer_x11.cc
index b4f3bf575b84e64acb4f3d231c0d024bff50c365..789d7435a23e6fdaa7804abec20fe10c9f6c83c4 100644
--- a/webrtc/modules/desktop_capture/screen_capturer_x11.cc
+++ b/webrtc/modules/desktop_capture/screen_capturer_x11.cc
@@ -143,8 +143,8 @@ bool ScreenCapturerLinux::Init(const DesktopCaptureOptions& options) {
return false;
}
- gc_ = XCreateGC(display(), root_window_, 0, NULL);
- if (gc_ == NULL) {
+ gc_ = XCreateGC(display(), root_window_, 0, nullptr);
+ if (gc_ == nullptr) {
LOG(LS_ERROR) << "Unable to get graphics context";
DeinitXlib();
return false;

Powered by Google App Engine
This is Rietveld 408576698