]> git.tdb.fi Git - libs/datafile.git/blobdiff - source/input.cpp
Use nullptr instead of 0 for pointers
[libs/datafile.git] / source / input.cpp
index a1d462a770d320f0a13c59175459fc8c131186b4..86623ea36dd6063d94f037428f5c026b47fcf528 100644 (file)
@@ -6,7 +6,7 @@ namespace DataFile {
 
 Input::Input(IO::Base &i):
        in(&i),
-       compressed(0),
+       compressed(nullptr),
        line(1),
        next(-1)
 { }
@@ -18,7 +18,7 @@ Input::~Input()
 
 void Input::set_decompress()
 {
-       compressed = new IO::ZlibCompressed(*in);
+       compressed = new IO::ZlibCompressed(*in, IO::M_READ);
        in = compressed;
 }