diff options
Diffstat (limited to 'src/latexdocvisitor.cpp')
-rw-r--r-- | src/latexdocvisitor.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/latexdocvisitor.cpp b/src/latexdocvisitor.cpp index bc1b17c..fd66059 100644 --- a/src/latexdocvisitor.cpp +++ b/src/latexdocvisitor.cpp @@ -26,9 +26,9 @@ #include "util.h" #include "message.h" -static QCString escapeLabelName(const char *s) +static QString escapeLabelName(const char *s) { - QCString result; + QString result; const char *p=s; char c; while ((c=*p++)) @@ -44,9 +44,9 @@ static QCString escapeLabelName(const char *s) return result; } -QCString LatexDocVisitor::escapeMakeIndexChars(const char *s) +QString LatexDocVisitor::escapeMakeIndexChars(const char *s) { - QCString result; + QString result; const char *p=s; char str[2]; str[1]=0; char c; @@ -211,7 +211,7 @@ void LatexDocVisitor::visit(DocVerbatim *s) { case DocVerbatim::Code: // fall though m_t << "\n\n\\footnotesize\\begin{verbatim}"; - parseCode(m_ci,s->context(),s->text(),FALSE,0); + parseCode(m_ci,s->context(),s->text().latin1(),FALSE,0); m_t << "\\end{verbatim}\\normalsize" << endl; break; case DocVerbatim::Verbatim: @@ -246,7 +246,7 @@ void LatexDocVisitor::visit(DocInclude *inc) { case DocInclude::Include: m_t << "\n\n\\footnotesize\\begin{verbatim}"; - parseCode(m_ci,inc->context(),inc->text(),FALSE,0); + parseCode(m_ci,inc->context(),inc->text().latin1(),FALSE,0); m_t << "\\end{verbatim}\\normalsize" << endl; break; case DocInclude::DontInclude: @@ -272,7 +272,7 @@ void LatexDocVisitor::visit(DocIncOperator *op) } if (op->type()!=DocIncOperator::Skip) { - parseCode(m_ci,op->context(),op->text(),FALSE,0); + parseCode(m_ci,op->context(),op->text().latin1(),FALSE,0); } if (op->isLast()) { @@ -648,7 +648,7 @@ void LatexDocVisitor::visitPre(DocImage *img) { m_t << "\\mbox{"; } - QCString gfxName = img->name(); + QString gfxName = img->name(); if (gfxName.right(4)==".eps" || gfxName.right(4)==".pdf") { gfxName=gfxName.left(gfxName.length()-4); @@ -693,7 +693,7 @@ void LatexDocVisitor::visitPost(DocImage *img) void LatexDocVisitor::visitPre(DocDotFile *df) { - QCString baseName=df->file(); + QString baseName=df->file(); int i; if ((i=baseName.findRev('/'))!=-1) { @@ -703,7 +703,7 @@ void LatexDocVisitor::visitPre(DocDotFile *df) { baseName=baseName.left(baseName.length()-4); } - QCString outDir = Config_getString("LATEX_OUTPUT"); + QString outDir = Config_getString("LATEX_OUTPUT"); writeDotGraphFromFile(df->file(),outDir,baseName,EPS); if (df->hasCaption()) { @@ -883,7 +883,7 @@ void LatexDocVisitor::filter(const char *str) filterLatexString(m_t,str,FALSE,m_insidePre); } -void LatexDocVisitor::startLink(const QCString &ref,const QCString &file,const QCString &anchor) +void LatexDocVisitor::startLink(const QString &ref,const QString &file,const QString &anchor) { if (ref.isEmpty() && Config_getBool("PDF_HYPERLINKS")) { |