Skip to content

Commit

Permalink
Merge pull request root-project#30 from Dr15Jones/fixClangProblemWith…
Browse files Browse the repository at this point in the history
…DestructorWrapper

Remove parentheses from destructor call to fix problem with clang 3.5
  • Loading branch information
aledegano committed Oct 3, 2014
2 parents ec56896 + 2a48422 commit 281a8c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cint/reflex/python/genreflex/gendict.py
Original file line number Diff line number Diff line change
Expand Up @@ -2223,7 +2223,7 @@ def genDestructorDef(self, attrs, children):
dtorscope = '::' + cl + '::'
dtorimpl = '%svoid destructor%s(void*, void * o, const std::vector<void*>&, void *) {\n' % ( static, attrs['id'])
if (attrs['name'][0] != '.'):
return dtorimpl + '(((::%s*)o)->%s~%s)();\n}' % ( cl, dtorscope, attrs['name'] )
return dtorimpl + '((::%s*)o)->%s~%s();\n}' % ( cl, dtorscope, attrs['name'] )
else:
# unnamed; can't call.
return dtorimpl + ' // unnamed, cannot call destructor\n}'
Expand Down

0 comments on commit 281a8c7

Please sign in to comment.