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);
|
SwigType_del_pointer(type);
|
||||||
if (SwigType_isfunction(type)) {
|
if (SwigType_isfunction(type)) {
|
||||||
Printf(result, "f");
|
Printf(result, "f");
|
||||||
goto ready;
|
Delete(type);
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
Delete(type);
|
Delete(type);
|
||||||
type = Copy(type_arg);
|
type = Copy(type_arg);
|
||||||
|
|
@ -602,7 +603,6 @@ public:
|
||||||
else
|
else
|
||||||
Printf(result, "%s", Char(Swig_name_mangle(SwigType_base(type))));
|
Printf(result, "%s", Char(Swig_name_mangle(SwigType_base(type))));
|
||||||
|
|
||||||
ready:
|
|
||||||
if (prefix)
|
if (prefix)
|
||||||
Delete(prefix);
|
Delete(prefix);
|
||||||
if (type)
|
if (type)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue