diff --git a/ui/latexrenderer.cpp b/ui/latexrenderer.cpp index a12edca7a..4943e1a40 100644 --- a/ui/latexrenderer.cpp +++ b/ui/latexrenderer.cpp @@ -29,15 +29,8 @@ namespace GuiUtils LatexRenderer::LatexRenderer() { - m_filelist = new QVector(); } -LatexRenderer::~LatexRenderer() -{ - delete m_filelist; -} - - LatexRenderer::Error LatexRenderer::renderLatexInHtml( QString& html, const QColor& textColor, int fontSize, int resolution, QString& latexOutput ) { if( !html.contains("$$")) @@ -180,7 +173,6 @@ LatexRenderer::Error LatexRenderer::handleLatex( QString& fileName, const QStrin return DvipngFailed; } - m_filelist->append(tempFileNameNS + QString(".png")); fileName = tempFileNameNS + QString(".png"); return NoError; } diff --git a/ui/latexrenderer.h b/ui/latexrenderer.h index 6fa615ec2..56704ecdf 100644 --- a/ui/latexrenderer.h +++ b/ui/latexrenderer.h @@ -12,9 +12,9 @@ #ifndef LATEXRENDERER_H #define LATEXRENDERER_H + #include "guiutils.h" -#include class QString; class QColor; @@ -34,7 +34,6 @@ public: }; LatexRenderer(); - virtual ~LatexRenderer(); Error renderLatexInHtml( QString& html, const QColor &textColor, int fontSize, int resolution, QString &latexOutput ); static bool mightContainLatex ( const QString& text ); @@ -42,8 +41,6 @@ public: private: Error handleLatex( QString &fileName, const QString &latexFormula, const QColor &textColor, int fontSize, int resolution, QString &latexOutput ); static bool securityCheck( const QString &latexFormula ); - - QVector *m_filelist; }; }