Add initialization to NULL for Type that I missed last time

This commit is contained in:
Nathan Braswell
2015-05-18 17:14:12 -04:00
parent 911b25f78b
commit 6a144c9a8a

View File

@@ -5,6 +5,7 @@ Type::Type() {
baseType = none; baseType = none;
typeDefinition = nullptr; typeDefinition = nullptr;
templateDefinition = nullptr; templateDefinition = nullptr;
returnType = nullptr;
} }
Type::Type(ValueType typeIn, int indirectionIn) { Type::Type(ValueType typeIn, int indirectionIn) {
@@ -12,6 +13,7 @@ Type::Type(ValueType typeIn, int indirectionIn) {
baseType = typeIn; baseType = typeIn;
typeDefinition = nullptr; typeDefinition = nullptr;
templateDefinition = nullptr; templateDefinition = nullptr;
returnType = nullptr;
} }
Type::Type(ValueType typeIn, std::set<std::string> traitsIn) { Type::Type(ValueType typeIn, std::set<std::string> traitsIn) {
@@ -20,6 +22,7 @@ Type::Type(ValueType typeIn, std::set<std::string> traitsIn) {
traits = traitsIn; traits = traitsIn;
typeDefinition = nullptr; typeDefinition = nullptr;
templateDefinition = nullptr; templateDefinition = nullptr;
returnType = nullptr;
} }
Type::Type(NodeTree<ASTData>* typeDefinitionIn, int indirectionIn) { Type::Type(NodeTree<ASTData>* typeDefinitionIn, int indirectionIn) {
@@ -27,6 +30,7 @@ Type::Type(NodeTree<ASTData>* typeDefinitionIn, int indirectionIn) {
baseType = none; baseType = none;
typeDefinition = typeDefinitionIn; typeDefinition = typeDefinitionIn;
templateDefinition = nullptr; templateDefinition = nullptr;
returnType = nullptr;
} }
Type::Type(NodeTree<ASTData>* typeDefinitionIn, std::set<std::string> traitsIn) { Type::Type(NodeTree<ASTData>* typeDefinitionIn, std::set<std::string> traitsIn) {
@@ -35,6 +39,7 @@ Type::Type(NodeTree<ASTData>* typeDefinitionIn, std::set<std::string> traitsIn)
typeDefinition = typeDefinitionIn; typeDefinition = typeDefinitionIn;
traits = traitsIn; traits = traitsIn;
templateDefinition = nullptr; templateDefinition = nullptr;
returnType = nullptr;
} }
Type::Type(ValueType typeIn, NodeTree<ASTData>* typeDefinitionIn, int indirectionIn, std::set<std::string> traitsIn) { Type::Type(ValueType typeIn, NodeTree<ASTData>* typeDefinitionIn, int indirectionIn, std::set<std::string> traitsIn) {
@@ -43,6 +48,7 @@ Type::Type(ValueType typeIn, NodeTree<ASTData>* typeDefinitionIn, int indirectio
typeDefinition = typeDefinitionIn; typeDefinition = typeDefinitionIn;
traits = traitsIn; traits = traitsIn;
templateDefinition = nullptr; templateDefinition = nullptr;
returnType = nullptr;
} }
Type::Type(ValueType typeIn, NodeTree<ASTData>* typeDefinitionIn, int indirectionIn, std::set<std::string> traitsIn, std::vector<Type*> parameterTypesIn, Type* returnTypeIn) { Type::Type(ValueType typeIn, NodeTree<ASTData>* typeDefinitionIn, int indirectionIn, std::set<std::string> traitsIn, std::vector<Type*> parameterTypesIn, Type* returnTypeIn) {
@@ -69,6 +75,7 @@ Type::Type(ValueType typeIn, NodeTree<Symbol>* templateDefinitionIn, std::set<st
typeDefinition = nullptr; typeDefinition = nullptr;
templateDefinition = templateDefinitionIn; templateDefinition = templateDefinitionIn;
traits = traitsIn; traits = traitsIn;
returnType = nullptr;
} }