]> git.tdb.fi Git - libs/core.git/blobdiff - source/fs/stat.h
Use default member initializers and constructor delegation
[libs/core.git] / source / fs / stat.h
index e2400ed9b5a037b2a4396aa92d0fb92e01009118..00e3eb939dc5000b5d99299a40d8b4bd0e745a3a 100644 (file)
@@ -33,16 +33,16 @@ private:
                std::string group;
        };
 
                std::string group;
        };
 
-       bool exists;
-       FileType type;
-       FileSize size;
-       FileSize alloc_size;
+       bool exists = false;
+       FileType type = UNKNOWN;
+       FileSize size = 0;
+       FileSize alloc_size = 0;
        Time::TimeStamp mtime;
        mutable OwnerInfo owner_info;
        Time::TimeStamp mtime;
        mutable OwnerInfo owner_info;
-       Private *priv;
+       Private *priv = 0;
 
 public:
 
 public:
-       Stat();
+       Stat() { }
        Stat(const Stat &);
        Stat &operator=(const Stat &);
        ~Stat();
        Stat(const Stat &);
        Stat &operator=(const Stat &);
        ~Stat();