no need for InferredGenericType!

This commit is contained in:
James Blacklock 2021-10-15 02:57:49 -07:00 committed by Olivier Goffart
parent ab665ba7b6
commit cc4105e274
4 changed files with 2 additions and 9 deletions

View file

@ -1628,7 +1628,7 @@ fn compile_expression(
"[](const sixtyfps::Image &img) { return img.size(); }".into()
}
BuiltinFunction::ArrayLength => {
"[](const sixtyfps::Model &model) { return (int) model.row_count(); }".into()
"[](const auto &model) { return (int) model.row_count(); }".into()
}
BuiltinFunction::Rgb => {
"[](int r, int g, int b, float a) {{ return sixtyfps::Color::from_argb_uint8(std::clamp(a * 255., 0., 255.), std::clamp(r, 0, 255), std::clamp(g, 0, 255), std::clamp(b, 0, 255)); }}".into()