Skip to content

Commit 5a5dc31

Browse files
committed
[sipify] fix again template inheritance
1 parent a3b64e2 commit 5a5dc31

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/sipify.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -524,8 +524,8 @@ sub detect_comment_block{
524524
push @template_inheritance_template, $1;
525525
push @template_inheritance_class, $2;
526526
}
527-
$m =~ s/(\b(?!QList)\w+)<((?:[\w ]|::)+)>/$1${2}Base/g; # use the typeded as template inheritance
528-
$m =~ s/(\w+)<((?:[\w ]|::)+)>//g; # remove remaining templates
527+
$m =~ s/(\b(?!QList)\w+)< *((?:\w|::)+) *>/$1${2}Base/g; # use the typeded as template inheritance
528+
$m =~ s/(\w+)< *((?:w|::)+) *>//g; # remove remaining templates
529529
$m =~ s/([:,])\s*,/$1/g;
530530
$m =~ s/(\s*[:,])?\s*$//;
531531
$LINE .= $m;

0 commit comments

Comments
 (0)