Skip to content

Commit

Permalink
Fix for translator.py to deal with =default destructor
Browse files Browse the repository at this point in the history
  • Loading branch information
doxygen committed Feb 16, 2022
1 parent 9a5fff0 commit e18f715
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/translator.py
Expand Up @@ -624,8 +624,8 @@ def collectPureVirtualPrototypes(self):
else:
self.__unexpectedToken(status, tokenId, tokenLineNo)

elif status == 8: # zero expected
if tokenId == 'num' and tokenStr == '0':
elif status == 8: # zero expected (or default for the destructor)
if (tokenId == 'num' and tokenStr == '0') or (tokenId == 'id' and tokenStr == 'default'):
status = 9
else:
self.__unexpectedToken(status, tokenId, tokenLineNo)
Expand Down

0 comments on commit e18f715

Please sign in to comment.