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

Unified Diff: tools/win_dbghelp.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 | « tools/timer/TimerData.cpp ('k') | tools/win_lcid.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/win_dbghelp.cpp
diff --git a/tools/win_dbghelp.cpp b/tools/win_dbghelp.cpp
index 57389b430d508f02559c479b37ac7f746df4225e..7291f369a9c38f350990c467467f46838f069e44 100644
--- a/tools/win_dbghelp.cpp
+++ b/tools/win_dbghelp.cpp
@@ -45,7 +45,7 @@
#define CDB_PRINT_CALLSTACK_CURRENT_THREAD "? " MARKER_THREAD_CALLSTACK_START_NUMBER "; k; ? " MARKER_THREAD_CALLSTACK_STOP_NUMBER "; .ecxr; ? " MARKER_EXCEPTION_CALLSTACK_START_NUMBER "; k; ? " MARKER_EXCEPTION_CALLSTACK_STOP_NUMBER "; q"
static void strncpyOrSetBlank(char* dest, const char* src, size_t len) {
- const char* srcOrEmptyString = (NULL == src) ? "" : src;
+ const char* srcOrEmptyString = (nullptr == src) ? "" : src;
strncpy(dest, srcOrEmptyString, len);
}
@@ -105,7 +105,7 @@ static void printCallstack(const char* filename,
break;
} else if (started) {
// Filter messages. Calstack lines contain "exe/dll!function"
- if (strchr(line, '!') != NULL && strlen(line) > CDB_CALLSTACK_PREFIX) {
+ if (strchr(line, '!') != nullptr && strlen(line) > CDB_CALLSTACK_PREFIX) {
printf("%s", line + CDB_CALLSTACK_PREFIX); // fgets includes \n already.
}
}
@@ -139,7 +139,7 @@ int GenerateDumpAndPrintCallstack(EXCEPTION_POINTERS* pExceptionPointers) {
GetTempPath( dwBufferSize, szPath );
sprintf( szFileName, "%s%s", szPath, szAppName );
- CreateDirectory( szFileName, NULL );
+ CreateDirectory( szFileName, nullptr );
BUILD_UNIQUE_FILENAME(szFileName, ".dmp", szPath, szAppName, szVersion, stLocalTime);
BUILD_UNIQUE_FILENAME(szFileNameOutput, ".out", szPath, szAppName, szVersion, stLocalTime);
@@ -161,8 +161,8 @@ int GenerateDumpAndPrintCallstack(EXCEPTION_POINTERS* pExceptionPointers) {
hDumpFile,
MiniDumpWithDataSegs,
&ExpParam,
- NULL,
- NULL);
+ nullptr,
+ nullptr);
printf("MiniDump file: %s\n", szFileName);
printf("App exe and pdb: %s\n", getBinariesPath());
« no previous file with comments | « tools/timer/TimerData.cpp ('k') | tools/win_lcid.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698