zap unused member variable

remotes/origin/textfind-and-transparency
Albert Astals Cid 15 years ago
parent 27efa7a8b5
commit 891abe2da8
  1. 8
      ui/latexrenderer.cpp
  2. 5
      ui/latexrenderer.h

@ -29,15 +29,8 @@ namespace GuiUtils
LatexRenderer::LatexRenderer() LatexRenderer::LatexRenderer()
{ {
m_filelist = new QVector<QString>();
} }
LatexRenderer::~LatexRenderer()
{
delete m_filelist;
}
LatexRenderer::Error LatexRenderer::renderLatexInHtml( QString& html, const QColor& textColor, int fontSize, int resolution, QString& latexOutput ) LatexRenderer::Error LatexRenderer::renderLatexInHtml( QString& html, const QColor& textColor, int fontSize, int resolution, QString& latexOutput )
{ {
if( !html.contains("$$")) if( !html.contains("$$"))
@ -180,7 +173,6 @@ LatexRenderer::Error LatexRenderer::handleLatex( QString& fileName, const QStrin
return DvipngFailed; return DvipngFailed;
} }
m_filelist->append(tempFileNameNS + QString(".png"));
fileName = tempFileNameNS + QString(".png"); fileName = tempFileNameNS + QString(".png");
return NoError; return NoError;
} }

@ -12,9 +12,9 @@
#ifndef LATEXRENDERER_H #ifndef LATEXRENDERER_H
#define LATEXRENDERER_H #define LATEXRENDERER_H
#include "guiutils.h" #include "guiutils.h"
#include <QVector>
class QString; class QString;
class QColor; class QColor;
@ -34,7 +34,6 @@ public:
}; };
LatexRenderer(); LatexRenderer();
virtual ~LatexRenderer();
Error renderLatexInHtml( QString& html, const QColor &textColor, int fontSize, int resolution, QString &latexOutput ); Error renderLatexInHtml( QString& html, const QColor &textColor, int fontSize, int resolution, QString &latexOutput );
static bool mightContainLatex ( const QString& text ); static bool mightContainLatex ( const QString& text );
@ -42,8 +41,6 @@ public:
private: private:
Error handleLatex( QString &fileName, const QString &latexFormula, const QColor &textColor, int fontSize, int resolution, QString &latexOutput ); Error handleLatex( QString &fileName, const QString &latexFormula, const QColor &textColor, int fontSize, int resolution, QString &latexOutput );
static bool securityCheck( const QString &latexFormula ); static bool securityCheck( const QString &latexFormula );
QVector<QString> *m_filelist;
}; };
} }

Loading…
Cancel
Save