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

Unified Diff: webrtc/modules/desktop_capture/win/cursor_unittest.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/cursor_unittest.cc
diff --git a/webrtc/modules/desktop_capture/win/cursor_unittest.cc b/webrtc/modules/desktop_capture/win/cursor_unittest.cc
index e37fd981b04575e753e8508f3ccee1a55b04a498..b09e84cf7304b49da79ea10db6a3b1fc855bb75f 100644
--- a/webrtc/modules/desktop_capture/win/cursor_unittest.cc
+++ b/webrtc/modules/desktop_capture/win/cursor_unittest.cc
@@ -26,18 +26,18 @@ namespace {
// compares pixels with |right|. Returns true of MouseCursor bits match |right|.
// |right| must be a 32bpp cursor with alpha channel.
bool ConvertToMouseShapeAndCompare(unsigned left, unsigned right) {
- HMODULE instance = GetModuleHandle(NULL);
+ HMODULE instance = GetModuleHandle(nullptr);
// Load |left| from the EXE module's resources.
win::ScopedCursor cursor(reinterpret_cast<HCURSOR>(
LoadImage(instance, MAKEINTRESOURCE(left), IMAGE_CURSOR, 0, 0, 0)));
- EXPECT_TRUE(cursor != NULL);
+ EXPECT_TRUE(cursor != nullptr);
// Convert |cursor| to |mouse_shape|.
- HDC dc = GetDC(NULL);
+ HDC dc = GetDC(nullptr);
std::unique_ptr<MouseCursor> mouse_shape(
CreateMouseCursorFromHCursor(dc, cursor));
- ReleaseDC(NULL, dc);
+ ReleaseDC(nullptr, dc);
EXPECT_TRUE(mouse_shape.get());

Powered by Google App Engine
This is Rietveld 408576698