[Kde-bindings] KDE/kdebindings/kalyptus

Richard Dale Richard_Dale at tipitina.demon.co.uk
Fri Apr 17 15:23:53 UTC 2009


SVN commit 955426 by rdale:

* The return type of conversion operators was not being parsed correctly.
  Thanks to Tobias Rautenkranz for reporting the bug and a suggested fix.

CCMAIL: kde-bindings at kde.org


 M  +7 -0      kalyptus  


--- trunk/KDE/kdebindings/kalyptus/kalyptus #955425:955426
@@ -988,6 +988,7 @@
 		my $pure = $4 eq "" ? 0 : 1;
 		$tpn =~ s/\s+/ /g;
 		$tpn =~ s/operator\s+([^\w])/operator$1/g;
+
 		$params =~ s/\s+/ /g;
 
 		print "Method: R+N:[$tpn]\n\tP:[$params]\n\t[$const]\n" if $debug;
@@ -996,6 +997,12 @@
 					|| $tpn =~ /((?:\w*\s*::\s*~?)?[-\w:]+)\s*$/  ) { # normal
 				my $name = $1;
 				$tpn = $`;
+
+        # Set return type for conversion operators
+        if ( $name =~ /^operator\s+(\S.*)/ ) {
+          $tpn = $1;
+        }
+
 				$newNode = newMethod( $tpn, $name, 
 								$params, $const, $pure, $isDeprecated );
 		}



More information about the Kde-bindings mailing list