X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Ffs%2Fstat.h;h=c32e8798162787b40b47a4ff41d9c7603689e806;hp=3f056a5609eea802716037eb734c3d42ef51905d;hb=41363aed34382386f915f17c1a961750b4fdcb14;hpb=eeb6b89120ab259702f103da01bfd8c06f285e7b diff --git a/source/fs/stat.h b/source/fs/stat.h index 3f056a5..c32e879 100644 --- a/source/fs/stat.h +++ b/source/fs/stat.h @@ -1,8 +1,8 @@ #ifndef MSP_FS_STAT_H_ #define MSP_FS_STAT_H_ +#include #include -#include #include #include "path.h" @@ -17,7 +17,7 @@ enum FileType SYMLINK }; -typedef UInt64 FileSize; +typedef uint64_t FileSize; /** Holds file information. @@ -33,16 +33,16 @@ private: 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; - Private *priv; + Private *priv = nullptr; public: - Stat(); + Stat() = default; Stat(const Stat &); Stat &operator=(const Stat &); ~Stat();