From 96fcdcc219d2a0d3579719b84b28bede76efba64 Mon Sep 17 00:00:00 2001 From: halcanary Date: Thu, 27 Aug 2015 07:41:13 -0700 Subject: Style Change: NULL->nullptr DOCS_PREVIEW= https://skia.org/?cl=1316233002 Review URL: https://codereview.chromium.org/1316233002 --- tools/win_dbghelp.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tools/win_dbghelp.cpp') diff --git a/tools/win_dbghelp.cpp b/tools/win_dbghelp.cpp index 57389b430d..7291f369a9 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()); -- cgit v1.2.3