Unit::LAST_UNIT_DO_NOT_USE used to mark a dimension which doesn't have units.

This commit is contained in:
Roman Telezhynskyi 2023-10-08 07:41:16 +03:00
parent 5fb441c9ba
commit 9f42d88394

View File

@ -506,8 +506,7 @@ auto UnitsToStr(const Unit &unit, const bool translate) -> QString
case Unit::Px: case Unit::Px:
return translate ? QObject::tr("px") : unitPX; return translate ? QObject::tr("px") : unitPX;
case Unit::LAST_UNIT_DO_NOT_USE: case Unit::LAST_UNIT_DO_NOT_USE:
Q_UNREACHABLE(); return {};
break;
case Unit::Cm: case Unit::Cm:
default: default:
return translate ? QObject::tr("cm") : unitCM; return translate ? QObject::tr("cm") : unitCM;