Add initialization to NULL for Type that I missed last time
This commit is contained in:
@@ -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<std::string> traitsIn) {
|
||||
@@ -20,6 +22,7 @@ Type::Type(ValueType typeIn, std::set<std::string> traitsIn) {
|
||||
traits = traitsIn;
|
||||
typeDefinition = nullptr;
|
||||
templateDefinition = nullptr;
|
||||
returnType = nullptr;
|
||||
}
|
||||
|
||||
Type::Type(NodeTree<ASTData>* typeDefinitionIn, int indirectionIn) {
|
||||
@@ -27,6 +30,7 @@ Type::Type(NodeTree<ASTData>* typeDefinitionIn, int indirectionIn) {
|
||||
baseType = none;
|
||||
typeDefinition = typeDefinitionIn;
|
||||
templateDefinition = nullptr;
|
||||
returnType = nullptr;
|
||||
}
|
||||
|
||||
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;
|
||||
traits = traitsIn;
|
||||
templateDefinition = nullptr;
|
||||
returnType = nullptr;
|
||||
}
|
||||
|
||||
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;
|
||||
traits = traitsIn;
|
||||
templateDefinition = nullptr;
|
||||
returnType = nullptr;
|
||||
}
|
||||
|
||||
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;
|
||||
templateDefinition = templateDefinitionIn;
|
||||
traits = traitsIn;
|
||||
returnType = nullptr;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user