X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Ffs%2Fstat.cpp;h=773cdefbf8743ce08b6815d6a5115030944b46d1;hp=2269ae1a016fcf5b1857cb499fd4f21a24d62820;hb=41363aed34382386f915f17c1a961750b4fdcb14;hpb=20c897ece781e18ba54c41fd68e232ce566a938d diff --git a/source/fs/stat.cpp b/source/fs/stat.cpp index 2269ae1..773cdef 100644 --- a/source/fs/stat.cpp +++ b/source/fs/stat.cpp @@ -7,20 +7,6 @@ using namespace std; namespace Msp { namespace FS { -Stat::Private::Private(): - owner_id(0), - group_id(0) -{ } - - -Stat::Stat(): - exists(false), - type(UNKNOWN), - size(0), - alloc_size(0), - priv(0) -{ } - Stat::Stat(const Stat &other): exists(other.exists), type(other.type), @@ -28,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) @@ -40,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; }