X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Finput.h;h=a9c96f48abce9cdf9e533e640f3913c8849e0d7f;hb=HEAD;hp=d30abd618b755c6e4c524ba1174345a1b2da08c8;hpb=e1b8089be727f651fc2022d6e7ff775047730e85;p=libs%2Fdatafile.git diff --git a/source/input.h b/source/input.h index d30abd6..6cc53e7 100644 --- a/source/input.h +++ b/source/input.h @@ -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