comparison 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
comparison
equal deleted inserted replaced
1581:ad5f892c0c4d 1582:70e172e6cc59
299 } 299 }
300 #endif /* !defined(__APPLE__) etc */ 300 #endif /* !defined(__APPLE__) etc */
301 #endif /* !_WIN32 */ 301 #endif /* !_WIN32 */
302 302
303 303
304 static char *startupLocale = 0; 304 static char *startupLocale = nullptr;
305 305
306 void 306 void
307 StoreStartupLocale() 307 StoreStartupLocale()
308 { 308 {
309 char *loc = setlocale(LC_ALL, 0); 309 char *loc = setlocale(LC_ALL, nullptr);
310 if (!loc) return; 310 if (!loc) return;
311 if (startupLocale) free(startupLocale); 311 if (startupLocale) free(startupLocale);
312 startupLocale = strdup(loc); 312 startupLocale = strdup(loc);
313 } 313 }
314 314