Get rid of rather useless "goto" statement in get_mangled_type()
It's not significantly simpler to use "goto" in this function, so just replace it with "return". Also remove the unnecessary checks for strings being deleted being non-null, as they always are. No real changes.
This commit is contained in:
parent
cb3d9df000
commit
579c441aa9
1 changed files with 2 additions and 2 deletions
|
|
@ -577,7 +577,8 @@ public:
|
|||
SwigType_del_pointer(type);
|
||||
if (SwigType_isfunction(type)) {
|
||||
Printf(result, "f");
|
||||
goto ready;
|
||||
Delete(type);
|
||||
return result;
|
||||
}
|
||||
Delete(type);
|
||||
type = Copy(type_arg);
|
||||
|
|
@ -602,7 +603,6 @@ public:
|
|||
else
|
||||
Printf(result, "%s", Char(Swig_name_mangle(SwigType_base(type))));
|
||||
|
||||
ready:
|
||||
if (prefix)
|
||||
Delete(prefix);
|
||||
if (type)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue