From 901f42eb1d48d475b0497ef9b844a9735a07ef04 Mon Sep 17 00:00:00 2001 From: triton Date: Thu, 17 Oct 2013 21:19:02 +0100 Subject: [PATCH] Added a default constructor to Declaration to initialize the members. --- src/CppParser/AST.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/CppParser/AST.cpp b/src/CppParser/AST.cpp index c7b98974..f910606a 100644 --- a/src/CppParser/AST.cpp +++ b/src/CppParser/AST.cpp @@ -29,6 +29,18 @@ static std::vector split(const T & str, const T & delimiters) { namespace CppSharp { namespace CppParser { namespace AST { +Declaration::Declaration() + : Access(AccessSpecifier::Public) + , _Namespace(0) + , Comment(0) + , IsIncomplete(false) + , IsDependent(false) + , CompleteDeclaration(0) + , DefinitionOrder(0) + , OriginalPtr(0) +{ +} + Declaration* DeclarationContext::FindAnonymous(uint64_t key) { auto it = Anonymous.find(key);