Refactoring.

This commit is contained in:
Roman Telezhynskyi 2022-08-18 17:09:29 +03:00
parent 5f8b46da5b
commit 94a2bcb005

View file

@ -134,12 +134,8 @@ auto VPLayoutSettings::GetTilesSize() const -> QSizeF
//---------------------------------------------------------------------------------------------------------------------
auto VPLayoutSettings::GetTilesSize(Unit unit) const -> QSizeF
{
QSizeF convertedSize = QSizeF(
UnitConvertor(m_tilesSize.width(), Unit::Px, unit),
UnitConvertor(m_tilesSize.height(), Unit::Px, unit)
);
return convertedSize;
return {UnitConvertor(m_tilesSize.width(), Unit::Px, unit),
UnitConvertor(m_tilesSize.height(), Unit::Px, unit)};
}
//---------------------------------------------------------------------------------------------------------------------