Fix write_frame_info again.
[dcpomatic.git] / src / lib / data.cc
index e117199a1c9b3cfcbc736248edf36f274eececf1..5975ff6fc776d8808c1c07089046ad368cc6dffd 100644 (file)
 
 using boost::shared_array;
 
+Data::Data ()
+       : _size (0)
+{
+
+}
+
 Data::Data (int size)
        : _data (new uint8_t[size])
        , _size (size)
@@ -48,13 +54,13 @@ Data::Data (boost::filesystem::path file)
        if (!f) {
                throw FileError (_("could not open file for reading"), file);
        }
-       
+
        size_t const r = fread (_data.get(), 1, _size, f);
        if (r != size_t (_size)) {
                fclose (f);
                throw FileError (_("could not read from file"), file);
        }
-               
+
        fclose (f);
 }