Tidying.
[libdcp.git] / src / picture_asset_writer.h
index 12530513bc12d90e73279ea224b2c4294f9e6730..2fcd2de1036273f9e537cfe193de9d941eb27d39 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2012-2014 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2012-2021 Carl Hetherington <cth@carlh.net>
 
     This file is part of libdcp.
 
     files in the program, then also delete it here.
 */
 
+
 /** @file  src/picture_asset_writer.h
  *  @brief PictureAssetWriter and FrameInfo classes.
  */
 
+
 #ifndef LIBDCP_PICTURE_ASSET_WRITER_H
 #define LIBDCP_PICTURE_ASSET_WRITER_H
 
+
 #include "metadata.h"
 #include "types.h"
 #include "asset_writer.h"
 #include <stdint.h>
 #include <string>
 
+
 namespace dcp {
 
+
 class PictureAsset;
 
+
 /** @class FrameInfo
  *  @brief Information about a single frame (either a monoscopic frame or a left *or* right eye stereoscopic frame)
  */
 struct FrameInfo
 {
-       FrameInfo ()
-               : offset (0)
-               , size (0)
-       {}
+       FrameInfo () {}
 
        FrameInfo (uint64_t o, uint64_t s, std::string h)
                : offset (o)
@@ -66,11 +69,12 @@ struct FrameInfo
                , hash (h)
        {}
 
-       uint64_t offset;
-       uint64_t size;
+       uint64_t offset = 0;
+       uint64_t size = 0;
        std::string hash;
 };
 
+
 /** @class PictureAssetWriter
  *  @brief Parent class for classes which write picture assets.
  */
@@ -87,9 +91,11 @@ protected:
        PictureAssetWriter (PictureAsset *, boost::filesystem::path, bool);
 
        PictureAsset* _picture_asset;
-       bool _overwrite;
+       bool _overwrite = false;
 };
 
+
 }
 
+
 #endif