]> git.tdb.fi Git - libs/datafile.git/blobdiff - source/binaryparser.h
Move the definition of Input's operator bool to the header
[libs/datafile.git] / source / binaryparser.h
index dfb0de995c7092dd60c9ebc19d6d636b408de84b..f6226a1d621df86719b45b653a41fc883ba8194f 100644 (file)
@@ -19,18 +19,18 @@ private:
 
        Dictionary dict;
        StringMap strings;
-       unsigned float_precision;
-       StatementInfo *cur_info;
+       unsigned float_precision = 32;
+       StatementInfo *cur_info = nullptr;
        std::vector<unsigned> sub_remaining;
 
 public:
        BinaryParser(Input &i, const std::string &s);
 
-       virtual Statement parse();
-       virtual void process_control_statement(const Statement &);
+       Statement parse() override;
+       void process_control_statement(const Statement &) override;
 
-       virtual const StatementKey *peek(unsigned);
-       virtual bool parse_and_load(unsigned, Loader &, const LoaderAction &);
+       const StatementKey *peek(unsigned) override;
+       bool parse_and_load(unsigned, Loader &, const LoaderAction &) override;
 
 private:
        IntType::Store parse_int();