[core] Eliminate round-trip through Value in CameraFunction::evaluate

This commit is contained in:
John Firebaugh
2017-05-19 09:39:41 -07:00
parent 895275d6fc
commit bdff99c853
3 changed files with 22 additions and 16 deletions

View File

@@ -25,7 +25,7 @@ public:
T evaluate(float zoom) const {
return stops.match([&] (const auto& s) {
return s.evaluate(Value(double(zoom))).value_or(T());
return s.evaluate(zoom).value_or(T());
});
}