X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbinaryparser.h;h=f6226a1d621df86719b45b653a41fc883ba8194f;hb=refs%2Fheads%2Fwip;hp=dfb0de995c7092dd60c9ebc19d6d636b408de84b;hpb=3b78eeb8b92dc3524d6a0456b4daf0a0f3dbf813;p=libs%2Fdatafile.git diff --git a/source/binaryparser.h b/source/binaryparser.h index dfb0de9..f6226a1 100644 --- a/source/binaryparser.h +++ b/source/binaryparser.h @@ -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 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();