C++, anon names, fix regex str/unicode complaint

This commit is contained in:
Jakob Lykke Andersen 2018-06-09 12:48:19 +02:00
parent 765ca9f400
commit 9a9acc842a

View File

@ -6044,7 +6044,7 @@ class CPPXRefRole(XRefRole):
if not has_explicit_title: if not has_explicit_title:
# major hax: replace anon names via simple string manipulation. # major hax: replace anon names via simple string manipulation.
# Can this actually fail? # Can this actually fail?
title = _anon_identifier_re.sub("[anonymous]", title) title = _anon_identifier_re.sub("[anonymous]", str(title))
if refnode['reftype'] == 'any': if refnode['reftype'] == 'any':
# Assume the removal part of fix_parens for :any: refs. # Assume the removal part of fix_parens for :any: refs.