Just get rid of an unnecessary variable
Simplify the code by avoiding a superfluous extra variable.
This commit is contained in:
parent
0353317a21
commit
bf71891197
1 changed files with 2 additions and 4 deletions
|
|
@ -736,11 +736,9 @@ ready:
|
||||||
{
|
{
|
||||||
SwigType *type = Getattr(n, "type");
|
SwigType *type = Getattr(n, "type");
|
||||||
String *return_type;
|
String *return_type;
|
||||||
String *tm;
|
|
||||||
|
|
||||||
if ((tm = Swig_typemap_lookup("ctype", n, "", 0))) {
|
if ((return_type = Swig_typemap_lookup("ctype", n, "", 0))) {
|
||||||
substituteResolvedType(target, type, tm);
|
substituteResolvedType(target, type, return_type);
|
||||||
return_type = tm;
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
Swig_warning(WARN_C_TYPEMAP_CTYPE_UNDEF, input_file, line_number, "No ctype typemap defined for %s\n", SwigType_str(type, 0));
|
Swig_warning(WARN_C_TYPEMAP_CTYPE_UNDEF, input_file, line_number, "No ctype typemap defined for %s\n", SwigType_str(type, 0));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue