findScaleFactorType, findScaleFactorPvt string_view

Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
James Cherry 2026-03-30 11:01:15 -07:00
parent 538db6211f
commit 5955958564
1 changed files with 2 additions and 2 deletions

View File

@ -3031,7 +3031,7 @@ scaleFactorTypeName(ScaleFactorType type)
}
ScaleFactorType
findScaleFactorType(const char *name)
findScaleFactorType(std::string_view name)
{
return scale_factor_type_map.find(name, ScaleFactorType::unknown);
}
@ -3072,7 +3072,7 @@ EnumNameMap<ScaleFactorPvt> scale_factor_pvt_names =
};
ScaleFactorPvt
findScaleFactorPvt(const char *name)
findScaleFactorPvt(std::string_view name)
{
return scale_factor_pvt_names.find(name, ScaleFactorPvt::unknown);
}