[Kde-bindings] KDE/kdebindings/kalyptus

Arno Rehn kde at arnorehn.de
Tue Jul 1 13:04:43 UTC 2008


SVN commit 826798 by arnorehn:

* When checking if a method is a constructor, exclude
  the namespace when comparing the class name to the
  method name.

CCMAIL: kde-bindings at kde.org



 M  +1 -1      kalyptusCxxToSmoke.pm  


--- trunk/KDE/kdebindings/kalyptus/kalyptusCxxToSmoke.pm #826797:826798
@@ -2663,7 +2663,7 @@
 		$methodFlags .= "|Smoke::mf_const" if $m->{Flags} =~ "c"; # useful?? probably not
 		$methodFlags .= "|Smoke::mf_copyctor" if $m->{Flags} =~ "x";
 		$methodFlags .= "|Smoke::mf_internal" if $m->{Flags} =~ "i";
-		$methodFlags .= "|Smoke::mf_ctor" if $methName eq $className;
+		$methodFlags .= "|Smoke::mf_ctor" if $methName eq $classNode->{astNodeName};
 		$methodFlags .= "|Smoke::mf_dtor" if $m->{ReturnType} eq '~';
 		$methodFlags .= "|Smoke::mf_protected" if $m->{Access} =~ /protected/;
 		$methodFlags =~ s/0\|//; # beautify



More information about the Kde-bindings mailing list