]> git.tdb.fi Git - libs/core.git/blobdiff - source/fs/stat.cpp
Use nullptr instead of 0 for pointers
[libs/core.git] / source / fs / stat.cpp
index ae9f803a9d16f1030da32d1c9e63f14cf7b48356..773cdefbf8743ce08b6815d6a5115030944b46d1 100644 (file)
@@ -14,7 +14,7 @@ Stat::Stat(const Stat &other):
        alloc_size(other.alloc_size),
        mtime(other.mtime),
        owner_info(other.owner_info),
        alloc_size(other.alloc_size),
        mtime(other.mtime),
        owner_info(other.owner_info),
-       priv(other.priv ? new Private(*other.priv) : 0)
+       priv(other.priv ? new Private(*other.priv) : nullptr)
 { }
 
 Stat &Stat::operator=(const Stat &other)
 { }
 
 Stat &Stat::operator=(const Stat &other)
@@ -26,7 +26,7 @@ Stat &Stat::operator=(const Stat &other)
        mtime = other.mtime;
        owner_info = other.owner_info;
        delete priv;
        mtime = other.mtime;
        owner_info = other.owner_info;
        delete priv;
-       priv = (other.priv ? new Private(*other.priv) : 0);
+       priv = (other.priv ? new Private(*other.priv) : nullptr);
 
        return *this;
 }
 
        return *this;
 }