Commit 943cbed9 authored by Kristof Szabados's avatar Kristof Szabados
Browse files

just extracted the identical function call to save double calling.


Signed-off-by: Kristof Szabados's avatarkristof <Kristof.Szabados@ericsson.com>
parent f3e0ef68
......@@ -373,10 +373,11 @@ void SimpleType::addToTypeSubstitutions() {
//It would be nice if here outside_reference.resolved to everything
bool newST = false;
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
return;
}else if(st == NULL && isBuiltInType(type.convertedValue)){
}else if(st == NULL && isConvertedBuiltIn){
st = new SimpleType(parser, module, construct);
st->type.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