From kde-commits Mon Jul 26 16:02:59 2004 From: Richard Dale Date: Mon, 26 Jul 2004 16:02:59 +0000 To: kde-commits Subject: kdebindings/kalyptus Message-Id: <20040726160259.00BBC9986 () office ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=109086295923817 CVS commit by rdale: * QMap and QPair template types such as 'QMap' with an embedded comma, were not being correctly normalised. A space was left in the smoke type. M +6 -0 ChangeLog 1.54 M +6 -0 kalyptusCxxToSmoke.pm 1.99 --- kdebindings/kalyptus/ChangeLog #1.53:1.54 @@ -1,2 +1,8 @@ +2004-07-26 Richard Dale + + * QMap and QPair template types such as 'QMap' with an + embedded comma, were not being correctly normalised. A space was left in + the smoke type. + 2004-07-25 Richard Dale --- kdebindings/kalyptus/kalyptusCxxToSmoke.pm #1.98:1.99 @@ -1594,4 +1594,7 @@ $type =~ s/\s+const$//; # for 'char* const' $type =~ s/\s+const\s*\*$/\*/; # for 'char* const*' + + $type =~ s/(<[^>]*)\s+([^>]*>)/$1$2/; # Remove embedded space from template types, such as + # 'QMap' return if ( $type eq 'void' or $type eq '' or $type eq '~' ); @@ -1651,4 +1654,7 @@ $type =~ s/\s+const\s*\*$/\*/; # for 'char* const*' + $type =~ s/(<[^>]*)\s+([^>]*>)/$1$2/; # Remove embedded space from template types, such as + # 'QMap' + return undef if ( $type =~ '~' or $type eq 'void' or $type eq '' );