findScaleFactorType, findScaleFactorPvt string_view
Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
parent
538db6211f
commit
5955958564
|
|
@ -3031,7 +3031,7 @@ scaleFactorTypeName(ScaleFactorType type)
|
||||||
}
|
}
|
||||||
|
|
||||||
ScaleFactorType
|
ScaleFactorType
|
||||||
findScaleFactorType(const char *name)
|
findScaleFactorType(std::string_view name)
|
||||||
{
|
{
|
||||||
return scale_factor_type_map.find(name, ScaleFactorType::unknown);
|
return scale_factor_type_map.find(name, ScaleFactorType::unknown);
|
||||||
}
|
}
|
||||||
|
|
@ -3072,7 +3072,7 @@ EnumNameMap<ScaleFactorPvt> scale_factor_pvt_names =
|
||||||
};
|
};
|
||||||
|
|
||||||
ScaleFactorPvt
|
ScaleFactorPvt
|
||||||
findScaleFactorPvt(const char *name)
|
findScaleFactorPvt(std::string_view name)
|
||||||
{
|
{
|
||||||
return scale_factor_pvt_names.find(name, ScaleFactorPvt::unknown);
|
return scale_factor_pvt_names.find(name, ScaleFactorPvt::unknown);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue