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:
1 parent
7f966f04f4
commit
ffeec264e8
1 file changed
+2
-2
+2
-2
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user