]> git.tdb.fi Git - libs/datafile.git/blobdiff - source/parser.h
Use default member initializers for constant initial values
[libs/datafile.git] / source / parser.h
index c15fee8eb6ade6445d2f485ae5b86fe7a23f199d..ed7a037cdb12a7eeb1d49f2526a4925800921012 100644 (file)
@@ -25,8 +25,8 @@ private:
        Input in;
        std::string main_src;
        std::string src;
-       bool good;
-       ParserMode *mode;
+       bool good = true;
+       ParserMode *mode = nullptr;
 
 public:
        Parser(IO::Base &i, const std::string &s);