Using the helper class as replacement for the real class, when not dealing with a real subclass, is nothing but trouble.

This commit is contained in:
Gustavo J. A. M. Carneiro committed 2007-12-30 18:37:31 +00:00
1 parent e04c3e7d28
commit a232af5b10
1 file changed
+1 -7
+1 -7
View File
@@ -409,13 +409,7 @@ class CppClass(object):
if self.cannot_be_constructed:
raise CodeGenerationError("%s cannot be constructed" % self.full_name)
if self.have_pure_virtual_methods:
if self.helper_class is None:
raise CodeGenerationError("%s cannot be constructed" % self.full_name)
else:
if self.helper_class.cannot_be_constructed:
raise CodeGenerationError("%s cannot be constructed" % self.full_name)
else:
return self.helper_class.name
raise CodeGenerationError("%s cannot be constructed" % self.full_name)
else:
return self.full_name