Fix the generation of the Enum full_name to ensure it starts with ::, to be inline with the last changeset.

This commit is contained in:
Gustavo J. A. M. Carneiro committed 2008-01-14 13:54:47 +00:00
1 parent 7f966f04f4
commit ffeec264e8
1 file changed
+2 -2
+2 -2
View File
@@ -59,8 +59,8 @@ class Enum(object):
self.full_name = module.cpp_namespace_prefix + '::' + self.name
else:
self.full_name = self.name
if self.full_name.startswith('::'):
self.full_name = self.full_name[2:]
if not self.full_name.startswith('::'):
self.full_name = '::' + self.full_name
else:
self.full_name = self.outer_class.full_name + '::' + self.name