X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Ffs%2Fstat.cpp;fp=source%2Ffs%2Fstat.cpp;h=773cdefbf8743ce08b6815d6a5115030944b46d1;hp=ae9f803a9d16f1030da32d1c9e63f14cf7b48356;hb=41363aed34382386f915f17c1a961750b4fdcb14;hpb=26a5878092f6547e701fd1a33abbf1878d26ab70 diff --git a/source/fs/stat.cpp b/source/fs/stat.cpp index ae9f803..773cdef 100644 --- a/source/fs/stat.cpp +++ b/source/fs/stat.cpp @@ -14,7 +14,7 @@ Stat::Stat(const Stat &other): 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) @@ -26,7 +26,7 @@ Stat &Stat::operator=(const Stat &other) 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; }