Commit 084e5dbc authored by lakedaemon's avatar lakedaemon

fixed initialization of member var for old make (hopefully)

parent 68a83edd
...@@ -39,7 +39,8 @@ class CppGenerator : public BaseGenerator { ...@@ -39,7 +39,8 @@ class CppGenerator : public BaseGenerator {
public: public:
CppGenerator(const Parser &parser, const std::string &path, CppGenerator(const Parser &parser, const std::string &path,
const std::string &file_name) const std::string &file_name)
: BaseGenerator(parser, path, file_name, "", "::"){}; : BaseGenerator(parser, path, file_name, "", "::"),
cur_name_space_(nullptr){};
// Iterate through all definitions we haven't generate code for (enums, // Iterate through all definitions we haven't generate code for (enums,
// structs, // structs,
// and tables) and output them to a single file. // and tables) and output them to a single file.
...@@ -206,7 +207,7 @@ class CppGenerator : public BaseGenerator { ...@@ -206,7 +207,7 @@ class CppGenerator : public BaseGenerator {
private: private:
// This tracks the current namespace so we can insert namespace declarations. // This tracks the current namespace so we can insert namespace declarations.
const Namespace *cur_name_space_ = nullptr; const Namespace *cur_name_space_;
const Namespace *CurrentNameSpace() { return cur_name_space_; } const Namespace *CurrentNameSpace() { return cur_name_space_; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment