fixes from code review
This commit is contained in:
parent
ba96783d11
commit
b885c22f11
2 changed files with 2 additions and 4 deletions
|
|
@ -2092,7 +2092,7 @@ int R::functionWrapper(Node *n) {
|
|||
Node * parent = Getattr(n, "parentNode");
|
||||
String * smartname = Getattr(parent, "feature:smartptr");
|
||||
if (smartname) {
|
||||
String * classtypeobj = NewString(Getattr(parent, "classtypeobj")); // this is the correct name, e.g. ClassName(int)
|
||||
String * classtypeobj = Getattr(parent, "classtypeobj"); // this is the correct name, e.g. ClassName(int)
|
||||
String * classtype = NewString(Getattr(parent, "classtype")); // this is the "wrong" name e.g. ClassName<int>
|
||||
|
||||
// we replace inside smartname ClassName<int> with ClassName(int)
|
||||
|
|
@ -2103,7 +2103,6 @@ int R::functionWrapper(Node *n) {
|
|||
String * smartname_fixed_rclass = getRClassName(smartname_fixed, 1, 1);
|
||||
Replaceall(tm, "$R_class", smartname_fixed_rclass);
|
||||
|
||||
Delete(classtypeobj);
|
||||
Delete(classtype);
|
||||
Delete(smartname_fixed);
|
||||
Delete(smartname_fixed_rclass);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue