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

Unified Diff: src/utils/win/SkHRESULT.cpp

Issue 1316233002: Style Change: NULL->nullptr (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-08-27 (Thursday) 10:25:06 EDT Created 5 years, 4 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
« no previous file with comments | « src/utils/win/SkDWriteGeometrySink.cpp ('k') | src/utils/win/SkIStream.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/utils/win/SkHRESULT.cpp
diff --git a/src/utils/win/SkHRESULT.cpp b/src/utils/win/SkHRESULT.cpp
index 0aea4a622e934c90b5e33b6f548d344ee163ce3f..d565986d10122ad267ea3826b6f0e9441286db45 100644
--- a/src/utils/win/SkHRESULT.cpp
+++ b/src/utils/win/SkHRESULT.cpp
@@ -15,23 +15,23 @@ void SkTraceHR(const char* file, unsigned long line, HRESULT hr, const char* msg
}
SkDebugf("%s(%lu) : error 0x%x: ", file, line, hr);
- LPSTR errorText = NULL;
+ LPSTR errorText = nullptr;
FormatMessageA(FORMAT_MESSAGE_ALLOCATE_BUFFER |
FORMAT_MESSAGE_FROM_SYSTEM |
FORMAT_MESSAGE_IGNORE_INSERTS,
- NULL,
+ nullptr,
hr,
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
(LPSTR) &errorText,
0,
- NULL
+ nullptr
);
- if (NULL == errorText) {
+ if (nullptr == errorText) {
SkDebugf("<unknown>\n");
} else {
SkDebugf("%s", errorText);
LocalFree(errorText);
- errorText = NULL;
+ errorText = nullptr;
}
}
« no previous file with comments | « src/utils/win/SkDWriteGeometrySink.cpp ('k') | src/utils/win/SkIStream.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698