Refactoring.

--HG--
branch : release
This commit is contained in:
Roman Telezhynskyi 2017-04-18 11:49:05 +03:00
parent bab0adfebc
commit c2609b98be

View File

@ -190,14 +190,7 @@ bool VMeasurement::IsGradationSizeValid(const QString &size)
if (not size.isEmpty()) if (not size.isEmpty())
{ {
const QStringList sizes = VMeasurement::WholeListSizes(Unit::Cm); const QStringList sizes = VMeasurement::WholeListSizes(Unit::Cm);
if (sizes.contains(size)) return sizes.contains(size);
{
return true;
}
else
{
return false;
}
} }
else else
{ {
@ -211,14 +204,7 @@ bool VMeasurement::IsGradationHeightValid(const QString &height)
if (not height.isEmpty()) if (not height.isEmpty())
{ {
const QStringList heights = VMeasurement::WholeListHeights(Unit::Cm); const QStringList heights = VMeasurement::WholeListHeights(Unit::Cm);
if (heights.contains(height)) return heights.contains(height);
{
return true;
}
else
{
return false;
}
} }
else else
{ {