Fix warning unreferenced formal parameter

This commit is contained in:
Razi Alavizadeh 2018-12-05 21:53:11 +03:30
parent fac3bd744d
commit 12482b862a
4 changed files with 7 additions and 7 deletions

View File

@ -602,7 +602,7 @@ QPen JKQTPbarVerticalGraph::getLinePen(JKQTPEnhancedPainter& painter) const {
return p; return p;
} }
double JKQTPbarVerticalGraph::getParentStackedMax(int index) const double JKQTPbarVerticalGraph::getParentStackedMax(int /*index*/) const
{ {
return false; return false;
} }

View File

@ -679,7 +679,7 @@ QColor JKQTPfilledVerticalRangeGraph::getKeyLabelColor()
return color; return color;
} }
QBrush JKQTPfilledVerticalRangeGraph::getBrush(JKQTPEnhancedPainter &painter) const QBrush JKQTPfilledVerticalRangeGraph::getBrush(JKQTPEnhancedPainter &/*painter*/) const
{ {
QBrush b; QBrush b;
b.setColor(fillColor); b.setColor(fillColor);

View File

@ -43,7 +43,7 @@ double JKQTPxParsedFunctionLineGraphFunction(double x, void* data) {
return r.num; return r.num;
} }
} }
} catch(std::exception& E) { } catch(std::exception& /*E*/) {
//qDebug()<<QString("parser error: %1").arg(E.what()); //qDebug()<<QString("parser error: %1").arg(E.what());
/*ok= QMessageBox::critical(this, tr("QuickFit-table"), /*ok= QMessageBox::critical(this, tr("QuickFit-table"),
tr("An error occured while parsing the expression '%1' in cell (row, column)=(%3, %4):\n%2\n\n\"OK\" will still go on evaluating\n\"Cancel\" will cancel evaluation for the rest of the cells.").arg(dlgMathExpression->getExpression()).arg(E.what()).arg(row).arg(column), tr("An error occured while parsing the expression '%1' in cell (row, column)=(%3, %4):\n%2\n\n\"OK\" will still go on evaluating\n\"Cancel\" will cancel evaluation for the rest of the cells.").arg(dlgMathExpression->getExpression()).arg(E.what()).arg(row).arg(column),
@ -138,7 +138,7 @@ void JKQTPxParsedFunctionLineGraph::createPlotData(bool /*collectParams*/)
//qDebug()<<"createPlotData(): adding variables: "<<t<<"ms"; //qDebug()<<"createPlotData(): adding variables: "<<t<<"ms";
fdata.node=fdata.parser->parse(function.toStdString()); fdata.node=fdata.parser->parse(function.toStdString());
//qDebug()<<"createPlotData(): parsing: "<<timer.elapsed()-t<<"ms"; //qDebug()<<"createPlotData(): parsing: "<<timer.elapsed()-t<<"ms";
} catch(std::exception& E) { } catch(std::exception& /*E*/) {
//qDebug()<<QString("parser error: %1").arg(E.what()); //qDebug()<<QString("parser error: %1").arg(E.what());
} }
@ -171,7 +171,7 @@ void JKQTPxParsedFunctionLineGraph::createPlotData(bool /*collectParams*/)
//qDebug()<<"createPlotData(): adding variables: "<<t-t0<<"ms"; //qDebug()<<"createPlotData(): adding variables: "<<t-t0<<"ms";
efdata.node=efdata.parser->parse(errorFunction.toStdString()); efdata.node=efdata.parser->parse(errorFunction.toStdString());
//qDebug()<<"createPlotData(): parsing: "<<timer.elapsed()-t<<"ms"; //qDebug()<<"createPlotData(): parsing: "<<timer.elapsed()-t<<"ms";
} catch(std::exception& E) { } catch(std::exception& /*E*/) {
//qDebug()<<QString("parser error: %1").arg(E.what()); //qDebug()<<QString("parser error: %1").arg(E.what());
} }

View File

@ -297,7 +297,7 @@ void TestWidgetGraphs::moveovl() {
} }
void TestWidgetGraphs::setErrorStyle(int index) void TestWidgetGraphs::setErrorStyle(int /*index*/)
{ {
QComboBox* cmb=qobject_cast<QComboBox*>(sender()); QComboBox* cmb=qobject_cast<QComboBox*>(sender());
if (cmb) { if (cmb) {
@ -314,7 +314,7 @@ void TestWidgetGraphs::setErrorStyle(int index)
} }
} }
void TestWidgetGraphs::setESSymbol(int index) void TestWidgetGraphs::setESSymbol(int /*index*/)
{ {
QComboBox* cmb=qobject_cast<QComboBox*>(sender()); QComboBox* cmb=qobject_cast<QComboBox*>(sender());
if (cmb) { if (cmb) {