mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Core: Change NULLs to nullptrs.
This commit is contained in:
@ -51,7 +51,7 @@ void Init()
|
||||
s_perf_map_file.Open(filename, "w");
|
||||
// Disable buffering in order to avoid missing some mappings
|
||||
// if the event of a crash:
|
||||
std::setvbuf(s_perf_map_file.GetHandle(), NULL, _IONBF, 0);
|
||||
std::setvbuf(s_perf_map_file.GetHandle(), nullptr, _IONBF, 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -29,7 +29,7 @@
|
||||
#if !defined(_WIN32) && !defined(ANDROID)
|
||||
static locale_t GetCLocale()
|
||||
{
|
||||
static locale_t c_locale = newlocale(LC_ALL_MASK, "C", NULL);
|
||||
static locale_t c_locale = newlocale(LC_ALL_MASK, "C", nullptr);
|
||||
return c_locale;
|
||||
}
|
||||
#endif
|
||||
|
@ -431,7 +431,7 @@ int main()
|
||||
// note: switch to recvmmsg (yes, mmsg) if this becomes
|
||||
// expensive
|
||||
rv = recvfrom(sock, &packet, sizeof(packet), 0, (sockaddr*) &raddr, &addrLen);
|
||||
if (gettimeofday(&tv, NULL) < 0)
|
||||
if (gettimeofday(&tv, nullptr) < 0)
|
||||
{
|
||||
perror("gettimeofday");
|
||||
exit(1);
|
||||
|
Reference in New Issue
Block a user