summaryrefslogtreecommitdiff
path: root/src/docbookgen.cpp
diff options
context:
space:
mode:
authorJinWang An <jinwang.an@samsung.com>2022-12-27 12:33:07 +0900
committerJinWang An <jinwang.an@samsung.com>2022-12-27 12:33:07 +0900
commit9cf4982ab5fc6d964e1a024ff91a72d1fee5dc00 (patch)
treea19f0c024ea91acd7177f41fb5f066023f49027b /src/docbookgen.cpp
parent15e5c5601a13a41757e2a5e1a9105d1714d40215 (diff)
downloaddoxygen-9cf4982ab5fc6d964e1a024ff91a72d1fee5dc00.tar.gz
doxygen-9cf4982ab5fc6d964e1a024ff91a72d1fee5dc00.tar.bz2
doxygen-9cf4982ab5fc6d964e1a024ff91a72d1fee5dc00.zip
Imported Upstream version 1.9.4upstream/1.9.4
Diffstat (limited to 'src/docbookgen.cpp')
-rw-r--r--src/docbookgen.cpp22
1 files changed, 7 insertions, 15 deletions
diff --git a/src/docbookgen.cpp b/src/docbookgen.cpp
index ff85689..ac502a2 100644
--- a/src/docbookgen.cpp
+++ b/src/docbookgen.cpp
@@ -147,8 +147,6 @@ DocbookCodeGenerator::DocbookCodeGenerator(TextStream &t) : m_t(t)
{
}
-DocbookCodeGenerator::~DocbookCodeGenerator() {}
-
void DocbookCodeGenerator::codify(const QCString &text)
{
Docbook_DB(("(codify \"%s\")\n",text));
@@ -253,14 +251,6 @@ void DocbookCodeGenerator::writeLineNumber(const QCString &ref,const QCString &f
m_col=0;
}
-void DocbookCodeGenerator::setCurrentDoc(const Definition *,const QCString &,bool)
-{
-}
-
-void DocbookCodeGenerator::addWord(const QCString &,bool)
-{
-}
-
void DocbookCodeGenerator::finish()
{
endCodeLine();
@@ -633,13 +623,15 @@ DB_GEN_C
}
}
-void DocbookGenerator::writeDoc(DocNode *n,const Definition *ctx,const MemberDef *,int)
+void DocbookGenerator::writeDoc(const IDocNodeAST *ast,const Definition *ctx,const MemberDef *,int)
{
DB_GEN_C
- DocbookDocVisitor *visitor =
- new DocbookDocVisitor(m_t,*this,ctx?ctx->getDefFileExtension():QCString());
- n->accept(visitor);
- delete visitor;
+ auto astImpl = dynamic_cast<const DocNodeAST*>(ast);
+ if (astImpl)
+ {
+ auto visitor { DocbookDocVisitor(m_t,*this,ctx?ctx->getDefFileExtension():QCString()) };
+ std::visit(visitor,astImpl->root);
+ }
}
void DocbookGenerator::startParagraph(const QCString &)