Commit 38eee75b authored by Botond Baranyi's avatar Botond Baranyi Committed by Gerrit Code Review
Browse files

Merge "just extracted the identical function call to save double calling."

parents 2a471f59 943cbed9
...@@ -373,10 +373,11 @@ void SimpleType::addToTypeSubstitutions() { ...@@ -373,10 +373,11 @@ void SimpleType::addToTypeSubstitutions() {
//It would be nice if here outside_reference.resolved to everything //It would be nice if here outside_reference.resolved to everything
bool newST = false; bool newST = false;
SimpleType * st = (SimpleType*)outside_reference.get_ref(); SimpleType * st = (SimpleType*)outside_reference.get_ref();
if(st == NULL && !isBuiltInType(type.convertedValue)){ bool isConvertedBuiltIn = isBuiltInType(type.convertedValue);
if(st == NULL && !isConvertedBuiltIn){
//Not even a reference, and not a built in type //Not even a reference, and not a built in type
return; return;
}else if(st == NULL && isBuiltInType(type.convertedValue)){ }else if(st == NULL && isConvertedBuiltIn){
st = new SimpleType(parser, module, construct); st = new SimpleType(parser, module, construct);
st->type.upload(type.convertedValue); st->type.upload(type.convertedValue);
st->name.upload(type.convertedValue); st->name.upload(type.convertedValue);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment