diff options
| author | Nils Maier <maierman@web.de> | 2013-08-20 18:57:17 +0200 |
|---|---|---|
| committer | Nils Maier <maierman@web.de> | 2013-08-20 21:28:24 +0200 |
| commit | d8f44ef4f6c5ad86b08658ecba41a84b775b6e69 (patch) | |
| tree | d149687d1dc46fbd641735d71551e5990080e1fb /src/ConsoleStatCalc.cc | |
| parent | 9da17424c62ebabf7c407695e6990cdd9820ebc9 (diff) | |
Convert most 0/NULL pointers to nullptr
Courtesy of llvm cpp11-migrate 3.3
Diffstat (limited to 'src/ConsoleStatCalc.cc')
| -rw-r--r-- | src/ConsoleStatCalc.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ConsoleStatCalc.cc b/src/ConsoleStatCalc.cc index 8fb20a96..4a29af8e 100644 --- a/src/ConsoleStatCalc.cc +++ b/src/ConsoleStatCalc.cc @@ -240,8 +240,8 @@ void printProgressSummary time_t now; struct tm* staticNowtmPtr; char buf[26]; - if(time(&now) != (time_t)-1 && (staticNowtmPtr = localtime(&now)) != 0 && - asctime_r(staticNowtmPtr, buf) != 0) { + if(time(&now) != (time_t)-1 && (staticNowtmPtr = localtime(&now)) != nullptr && + asctime_r(staticNowtmPtr, buf) != nullptr) { char* lfptr = strchr(buf, '\n'); if(lfptr) { *lfptr = '\0'; |
