[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/3.5/kdebindings/kalyptus
From:       Richard Dale <Richard_Dale () tipitina ! demon ! co ! uk>
Date:       2006-01-07 9:01:09
Message-ID: 1136624469.737703.10124.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 495132 by rdale:

* If a class had any pure virtual methods, then constructors and 
  destructors weren't being generated. Fixes problem reported by
  Arno Rehn.



 M  +2 -2      kalyptusCxxToKimono.pm  


--- branches/KDE/3.5/kdebindings/kalyptus/kalyptusCxxToKimono.pm #495131:495132
@@ -1966,7 +1966,7 @@
 		$access =~ s/_slots//;
 	    
 		if ($isConstructor) {
-			if ( $generateConstructors && $mainClassNode->{CanBeInstanciated} ) {
+			if ( $generateConstructors ) {
 #				$proxyInterfaceCode .= "\t\t\tvoid new$csharpClassName($csharpparams);\n";
 				$methodCode .= "\t\tpublic $csharpClassName($csharpparams) : this((Type) null) \
{\n";  $methodCode .= "\t\t\tCreate$csharpClassName" . "Proxy();\n";
@@ -2394,7 +2394,7 @@
     #}
     # We generate a dtor though, because we might want to add stuff into it
 	
-    if ($currentClassName eq $csharpClassName and $classNode->{CanBeInstanciated} \
and $classNode->{HasPublicDestructor}) { +    if ($currentClassName eq \
$csharpClassName and $classNode->{HasPublicDestructor}) {  if ( $generateConstructors \
) {  $methodCode .= "\t\t~$csharpClassName() {\n";
 			$methodCode .= "\t\t\tDispose$csharpClassName();\n\t\t}\n";


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic