Commit 1f2dadf6 authored by Nikita Sirgienko's avatar Nikita Sirgienko
Browse files

Fix minor compiler warnings

parent 8309aea8
......@@ -27,7 +27,7 @@
#include <QDebug>
const QStringList RHighlighter::operators_list=QStringList()
<< QLatin1String("(\\+|\\-|\*{1,2}|/|&lt;=?|&gt;=?|={1,2}|\\!=?|\|{1,2}|&amp;{1,2}|:{1,3}|\^|@|\\$|~)")
<< QLatin1String("(\\+|\\-|\\*{1,2}|/|&lt;=?|&gt;=?|={1,2}|\\!=?|\\|{1,2}|&amp;{1,2}|:{1,3}|\\^|@|\\$|~)")
<< QLatin1String("%[^%]*%"); // Taken in r.xml syntax file from KSyntaxHighlighter
const QStringList RHighlighter::specials_list=QStringList()
......
......@@ -192,7 +192,6 @@ void MaximaSession::reportProcessError(QProcess::ProcessError e)
void MaximaSession::currentExpressionChangedStatus(Cantor::Expression::Status status)
{
Cantor::Expression* expression = expressionQueue().first();
const QString& cmd = expression->command();
qDebug() << "expression status changed: command = " << expression->command() << ", status = " << status;
switch (status)
......
......@@ -165,6 +165,8 @@ QImage Renderer::epsRenderToImage(const QUrl& url, double scale, bool useHighRes
*errorReason = QString::fromLatin1("Render Eps on Cantor without eps support (libspectre)!");
Q_UNUSED(url);
Q_UNUSED(scale);
Q_UNUSED(useHighRes);
Q_UNUSED(size);
return QImage();
#endif
......
......@@ -177,7 +177,7 @@ void MathRenderTask::run()
// For example, this pdf will copied into .cws file on save
const QString& pdfFileName = pathWithoutExtension + QLatin1String(".pdf");
bool success; QString errorMessage; QSizeF size;
bool success; QString errorMessage;
const auto& data = renderPdfToFormat(pdfFileName, m_code, uuid, m_type, m_scale, m_highResolution, &success, &errorMessage);
result->successful = success;
result->errorMessage = errorMessage;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment