diff options
Diffstat (limited to 'src/textdocvisitor.cpp')
-rw-r--r-- | src/textdocvisitor.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/textdocvisitor.cpp b/src/textdocvisitor.cpp index 47cd56e..bcb1abc 100644 --- a/src/textdocvisitor.cpp +++ b/src/textdocvisitor.cpp @@ -24,29 +24,29 @@ //------------------------------------------------------------------------- -void TextDocVisitor::visit(DocSymbol *s) +void TextDocVisitor::operator()(const DocSymbol &s) { - const char *res = HtmlEntityMapper::instance()->html(s->symbol()); + const char *res = HtmlEntityMapper::instance()->html(s.symbol()); if (res) { m_t << res; } else { - err("text: non supported HTML-entity found: %s\n",HtmlEntityMapper::instance()->html(s->symbol(),TRUE)); + err("text: non supported HTML-entity found: %s\n",HtmlEntityMapper::instance()->html(s.symbol(),TRUE)); } } -void TextDocVisitor::visit(DocEmoji *s) +void TextDocVisitor::operator()(const DocEmoji &s) { - const char *res = EmojiEntityMapper::instance()->name(s->index()); + const char *res = EmojiEntityMapper::instance()->name(s.index()); if (res) { filter(res); } else { - filter(s->name()); + filter(s.name()); } } |