]> git.tdb.fi Git - libs/datafile.git/blobdiff - source/packsource.cpp
Use default member initializers for constant initial values
[libs/datafile.git] / source / packsource.cpp
index 4a0bb15e1a34554be1ef6668537081da716c589c..0fb64843b305edd8839a4e93bf1bb04c9c3f33de 100644 (file)
@@ -161,8 +161,7 @@ IO::Seekable *PackSource::open(const string &fn) const
 
 PackSource::Pack::Pack(IO::Seekable *i, const string &fn):
        filename(fn),
-       io(i),
-       base_offset(0)
+       io(i)
 { }
 
 PackSource::Pack::Pack(const Pack &other):
@@ -203,10 +202,7 @@ void PackSource::Pack::translate_files(FileMap &fm, const Pack &source) const
 
 PackSource::File::File(const Pack &p, const string &fn):
        pack(p),
-       filename(fn),
-       offset(0),
-       length(0),
-       collection(false)
+       filename(fn)
 { }
 
 PackSource::File::File(const File &other, const Pack &p):