X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ffs%2Fstat.h;h=00e3eb939dc5000b5d99299a40d8b4bd0e745a3a;hb=122846f0881673770d88eff7d925ecf25c01b62e;hp=8c05771ebe9b85bd27b42fb4e674a4b1a1f5d2b4;hpb=df74f89b175c1579f9383e6dec8ddb821e606642;p=libs%2Fcore.git diff --git a/source/fs/stat.h b/source/fs/stat.h index 8c05771..00e3eb9 100644 --- a/source/fs/stat.h +++ b/source/fs/stat.h @@ -1,6 +1,7 @@ #ifndef MSP_FS_STAT_H_ #define MSP_FS_STAT_H_ +#include #include #include #include "path.h" @@ -16,11 +17,7 @@ enum FileType SYMLINK }; -#ifdef MSVC -typedef __uint64 FileSize; -#else -typedef unsigned long long FileSize; -#endif +typedef uint64_t FileSize; /** Holds file information. @@ -36,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 = 0; public: - Stat(); + Stat() { } Stat(const Stat &); Stat &operator=(const Stat &); ~Stat();