Commit fc353a97 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇

[Calculator Runner] Fix unused variable warning

This variable is only used when Qalculate is available
parent 8e92d4df
...@@ -295,6 +295,7 @@ QString CalculatorRunner::calculate(const QString& term, bool *isApproximate) ...@@ -295,6 +295,7 @@ QString CalculatorRunner::calculate(const QString& term, bool *isApproximate)
return result.replace('.', QLocale().decimalPoint(), Qt::CaseInsensitive); return result.replace('.', QLocale().decimalPoint(), Qt::CaseInsensitive);
#else #else
Q_UNUSED(isApproximate);
//qDebug() << "calculating" << term; //qDebug() << "calculating" << term;
QJSEngine eng; QJSEngine eng;
QJSValue result = eng.evaluate(QStringLiteral("var result = %1; result").arg(term)); QJSValue result = eng.evaluate(QStringLiteral("var result = %1; result").arg(term));
......
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