GCC warning.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2017-09-29 10:43:47 +03:00
parent 58ca1b3110
commit a5e4261e55

View File

@ -307,11 +307,17 @@ void DialogFinalMeasurements::MoveUp()
return;
}
QT_WARNING_PUSH
QT_WARNING_DISABLE_GCC("-Wstrict-overflow")
#if QT_VERSION < QT_VERSION_CHECK(5, 6, 0)
Move(m_measurements, row, row-1);
#else
m_measurements.move(row, row-1);
#endif
QT_WARNING_POP
UpdateTree();
ui->tableWidget->selectRow(row-1);
@ -327,11 +333,17 @@ void DialogFinalMeasurements::MoveDown()
return;
}
QT_WARNING_PUSH
QT_WARNING_DISABLE_GCC("-Wstrict-overflow")
#if QT_VERSION < QT_VERSION_CHECK(5, 6, 0)
Move(m_measurements, row, row+1);
#else
m_measurements.move(row, row+1);
#endif
QT_WARNING_POP
UpdateTree();
ui->tableWidget->selectRow(row+1);