From 6a144c9a8a857e2d12c49f2e119a4274a3c48150 Mon Sep 17 00:00:00 2001 From: Nathan Braswell Date: Mon, 18 May 2015 17:14:12 -0400 Subject: [PATCH] Add initialization to NULL for Type that I missed last time --- src/Type.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Type.cpp b/src/Type.cpp index 19d2b3d..9975181 100644 --- a/src/Type.cpp +++ b/src/Type.cpp @@ -5,6 +5,7 @@ Type::Type() { baseType = none; typeDefinition = nullptr; templateDefinition = nullptr; + returnType = nullptr; } Type::Type(ValueType typeIn, int indirectionIn) { @@ -12,6 +13,7 @@ Type::Type(ValueType typeIn, int indirectionIn) { baseType = typeIn; typeDefinition = nullptr; templateDefinition = nullptr; + returnType = nullptr; } Type::Type(ValueType typeIn, std::set traitsIn) { @@ -20,6 +22,7 @@ Type::Type(ValueType typeIn, std::set traitsIn) { traits = traitsIn; typeDefinition = nullptr; templateDefinition = nullptr; + returnType = nullptr; } Type::Type(NodeTree* typeDefinitionIn, int indirectionIn) { @@ -27,6 +30,7 @@ Type::Type(NodeTree* typeDefinitionIn, int indirectionIn) { baseType = none; typeDefinition = typeDefinitionIn; templateDefinition = nullptr; + returnType = nullptr; } Type::Type(NodeTree* typeDefinitionIn, std::set traitsIn) { @@ -35,6 +39,7 @@ Type::Type(NodeTree* typeDefinitionIn, std::set traitsIn) typeDefinition = typeDefinitionIn; traits = traitsIn; templateDefinition = nullptr; + returnType = nullptr; } Type::Type(ValueType typeIn, NodeTree* typeDefinitionIn, int indirectionIn, std::set traitsIn) { @@ -43,6 +48,7 @@ Type::Type(ValueType typeIn, NodeTree* typeDefinitionIn, int indirectio typeDefinition = typeDefinitionIn; traits = traitsIn; templateDefinition = nullptr; + returnType = nullptr; } Type::Type(ValueType typeIn, NodeTree* typeDefinitionIn, int indirectionIn, std::set traitsIn, std::vector parameterTypesIn, Type* returnTypeIn) { @@ -69,6 +75,7 @@ Type::Type(ValueType typeIn, NodeTree* templateDefinitionIn, std::set