Fix duplicated semicolon
This commit is contained in:
parent
0168315076
commit
d1931cc499
1 changed files with 4 additions and 4 deletions
|
|
@ -184,14 +184,14 @@ class CppCodeWriter(CodeWriterBase):
|
||||||
arglist = ', '.join(args[1:])
|
arglist = ', '.join(args[1:])
|
||||||
if func == 'delete':
|
if func == 'delete':
|
||||||
assert not arglist
|
assert not arglist
|
||||||
stmt = 'delete %(this)s;' % locals()
|
stmt = 'delete %(this)s' % locals()
|
||||||
elif func == 'new':
|
elif func == 'new':
|
||||||
alloctype = retty.rstrip(' *')
|
alloctype = retty.rstrip(' *')
|
||||||
stmt = 'new %(alloctype)s(%(arglist)s);' % locals()
|
stmt = 'new %(alloctype)s(%(arglist)s)' % locals()
|
||||||
else:
|
else:
|
||||||
stmt = '%(this)s->%(func)s(%(arglist)s);' % locals()
|
stmt = '%(this)s->%(func)s(%(arglist)s)' % locals()
|
||||||
if retty == 'void':
|
if retty == 'void':
|
||||||
self.println(stmt)
|
self.println('%s;' % stmt)
|
||||||
else:
|
else:
|
||||||
return self.declare(retty, stmt)
|
return self.declare(retty, stmt)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue