mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Replace all NULLs to nullptr
This commit is contained in:
parent
6540ef68a7
commit
e06f0b797a
205 changed files with 717 additions and 721 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue