Remove unnecessary stripped_type variable from do_resolve_type()
It's unnecessary to strip qualifiers ourselves when classLookup() already does it internally anyhow.
This commit is contained in:
parent
f3b0b42145
commit
09f22c7453
1 changed files with 1 additions and 3 deletions
|
|
@ -713,10 +713,8 @@ private:
|
|||
ptype_desc->apply_in_typemap(NewString("&($1)"));
|
||||
}
|
||||
} else {
|
||||
scoped_dohptr stripped_type(SwigType_strip_qualifiers(resolved_type));
|
||||
|
||||
String* classname;
|
||||
if (Node* const class_node = Language::instance()->classLookup(stripped_type)) {
|
||||
if (Node* const class_node = Language::instance()->classLookup(type)) {
|
||||
typestr = SwigType_str(type, 0);
|
||||
classname = Getattr(class_node, "sym:name");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue