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

Unified Diff: webrtc/modules/desktop_capture/desktop_frame.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/desktop_frame.cc
diff --git a/webrtc/modules/desktop_capture/desktop_frame.cc b/webrtc/modules/desktop_capture/desktop_frame.cc
index dfc0928b6631b83522e498dd07224c1c59e2bf8b..e0016b1ead5e68976788309ce7433dc711a08e81 100644
--- a/webrtc/modules/desktop_capture/desktop_frame.cc
+++ b/webrtc/modules/desktop_capture/desktop_frame.cc
@@ -58,10 +58,10 @@ uint8_t* DesktopFrame::GetFrameDataAtPos(const DesktopVector& pos) const {
}
BasicDesktopFrame::BasicDesktopFrame(DesktopSize size)
- : DesktopFrame(size, kBytesPerPixel * size.width(),
+ : DesktopFrame(size,
+ kBytesPerPixel * size.width(),
new uint8_t[kBytesPerPixel * size.width() * size.height()],
- NULL) {
-}
+ nullptr) {}
BasicDesktopFrame::~BasicDesktopFrame() {
delete[] data_;

Powered by Google App Engine
This is Rietveld 408576698