Replace all NULLs to nullptr

This commit is contained in:
Andrei Kortunov 2018-10-09 10:21:12 +04:00
parent 6540ef68a7
commit e06f0b797a
205 changed files with 717 additions and 721 deletions

View file

@ -14,15 +14,15 @@ namespace
boost::filesystem::path getUserHome()
{
const char* dir = getenv("HOME");
if (dir == NULL)
if (dir == nullptr)
{
struct passwd* pwd = getpwuid(getuid());
if (pwd != NULL)
if (pwd != nullptr)
{
dir = pwd->pw_dir;
}
}
if (dir == NULL)
if (dir == nullptr)
return boost::filesystem::path();
else
return boost::filesystem::path(dir);