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

Unified Diff: webrtc/modules/desktop_capture/win/scoped_thread_desktop.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/win/scoped_thread_desktop.cc
diff --git a/webrtc/modules/desktop_capture/win/scoped_thread_desktop.cc b/webrtc/modules/desktop_capture/win/scoped_thread_desktop.cc
index 2d829d329361b4a45a22353645b4be6ec8c65810..7680459ab47f4c2e104093e9ea2a84108d110926 100644
--- a/webrtc/modules/desktop_capture/win/scoped_thread_desktop.cc
+++ b/webrtc/modules/desktop_capture/win/scoped_thread_desktop.cc
@@ -25,7 +25,7 @@ ScopedThreadDesktop::~ScopedThreadDesktop() {
}
bool ScopedThreadDesktop::IsSame(const Desktop& desktop) {
- if (assigned_.get() != NULL) {
+ if (assigned_.get() != nullptr) {
return assigned_->IsSame(desktop);
} else {
return initial_->IsSame(desktop);
@@ -33,7 +33,7 @@ bool ScopedThreadDesktop::IsSame(const Desktop& desktop) {
}
void ScopedThreadDesktop::Revert() {
- if (assigned_.get() != NULL) {
+ if (assigned_.get() != nullptr) {
initial_->SetThreadDesktop();
assigned_.reset();
}

Powered by Google App Engine
This is Rietveld 408576698