GCC warnings.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2015-10-09 20:26:53 +03:00
parent c1976401a0
commit b3a7063a9b

View File

@ -128,7 +128,7 @@ void DialogNewMeasurements::CurrentUnitChanged(int index)
//---------------------------------------------------------------------------------------------------------------------
void DialogNewMeasurements::InitMTypes()
{
int val;
int val = static_cast<int>(MeasurementsType::Unknown);
if (ui->comboBoxMType->currentIndex() != -1)
{
val = ui->comboBoxMType->currentData().toInt();
@ -166,7 +166,7 @@ void DialogNewMeasurements::InitSizesList()
//---------------------------------------------------------------------------------------------------------------------
void DialogNewMeasurements::InitUnits(const MeasurementsType &type)
{
int val;
int val = static_cast<int>(Unit::Cm);
if (ui->comboBoxUnit->currentIndex() != -1)
{
val = ui->comboBoxUnit->currentData().toInt();