fixes from code review

This commit is contained in:
AndLLA 2022-10-08 16:19:02 +02:00 committed by William S Fulton
commit b885c22f11
2 changed files with 2 additions and 4 deletions

View file

@ -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);