]> git.tdb.fi Git - libs/datafile.git/blobdiff - source/input.h
Cosmetic changes
[libs/datafile.git] / source / input.h
index d30abd618b755c6e4c524ba1174345a1b2da08c8..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 &); 
@@ -23,7 +23,7 @@ public:
        int get();
        int peek();
        unsigned get_line_number() const { return line; }
-       operator bool() const;
+       explicit operator bool() const;
 };  
 
 } // namespace DataFile