#5964 Fix "type qualifiers ignored on cast result type" warning on gcc 8.

This commit is contained in:
Kristian Bendiksen 2020-05-20 18:58:34 +02:00
parent 2ff699c079
commit c03f6e43ca

View File

@ -627,7 +627,7 @@ void RiuPvtPlotPanel::plotUiSelectedCurves()
// Determine which curves (phase) to actually plot based on selection in GUI
const int currComboIdx = m_phaseComboBox->currentIndex();
const RigFlowDiagSolverInterface::PvtCurve::Phase phaseToPlot =
static_cast<const RigFlowDiagSolverInterface::PvtCurve::Phase>( m_phaseComboBox->itemData( currComboIdx ).toInt() );
static_cast<RigFlowDiagSolverInterface::PvtCurve::Phase>( m_phaseComboBox->itemData( currComboIdx ).toInt() );
QString phaseString = "";
if ( phaseToPlot == RigFlowDiagSolverInterface::PvtCurve::GAS )