]> git.tdb.fi Git - libs/datafile.git/blobdiff - source/input.h
Use default member initializers for constant initial values
[libs/datafile.git] / source / input.h
index 61633458f53af02e411294822cc1d60dc2dd9d9c..6cc53e7af3674ee31fbd18bbff24e3d699830294 100644 (file)
@@ -10,10 +10,10 @@ namespace DataFile {
 class Input: private NonCopyable
 {   
 private:
-       IO::Base *in;
-       IO::Base *compressed;
-       unsigned line;
-       int next;
+       IO::Base *in = nullptr;
+       IO::Base *compressed = nullptr;
+       unsigned line = 1;
+       int next = -1;
 
 public:
        Input(IO::Base &);