Mercurial > hg > svcore
diff system/System.cpp @ 1582:70e172e6cc59 fix-static-analysis
Use nullptr throughout
author | Chris Cannam |
---|---|
date | Mon, 26 Nov 2018 14:33:41 +0000 |
parents | 5ac102155409 |
children | 85903b0e9b42 |
line wrap: on
line diff
--- a/system/System.cpp Mon Nov 26 13:51:36 2018 +0000 +++ b/system/System.cpp Mon Nov 26 14:33:41 2018 +0000 @@ -301,12 +301,12 @@ #endif /* !_WIN32 */ -static char *startupLocale = 0; +static char *startupLocale = nullptr; void StoreStartupLocale() { - char *loc = setlocale(LC_ALL, 0); + char *loc = setlocale(LC_ALL, nullptr); if (!loc) return; if (startupLocale) free(startupLocale); startupLocale = strdup(loc);