summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorlakedaemon <olivier.binda@wanadoo.fr>2016-07-08 22:00:15 +0200
committerlakedaemon <olivier.binda@wanadoo.fr>2016-07-08 22:00:15 +0200
commit084e5dbc4b170a828add67e81601f3c2c80cc481 (patch)
tree7dc634d72d7d938868b88048eb51442e1ca4845b /src
parent68a83eddd417ed3577a8623f326946deccc3fc13 (diff)
downloadflatbuffers-084e5dbc4b170a828add67e81601f3c2c80cc481.tar.gz
flatbuffers-084e5dbc4b170a828add67e81601f3c2c80cc481.tar.bz2
flatbuffers-084e5dbc4b170a828add67e81601f3c2c80cc481.zip
fixed initialization of member var for old make (hopefully)
Diffstat (limited to 'src')
-rw-r--r--src/idl_gen_cpp.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/idl_gen_cpp.cpp b/src/idl_gen_cpp.cpp
index c690240d..61ef6ff1 100644
--- a/src/idl_gen_cpp.cpp
+++ b/src/idl_gen_cpp.cpp
@@ -39,7 +39,8 @@ class CppGenerator : public BaseGenerator {
public:
CppGenerator(const Parser &parser, const std::string &path,
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,
// structs,
// and tables) and output them to a single file.
@@ -206,7 +207,7 @@ class CppGenerator : public BaseGenerator {
private:
// 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_; }