Change parameter to span

This commit is contained in:
Paul Ferrand 2020-05-30 15:09:27 +02:00
parent eff5bd0362
commit 7ccdaa02c2
2 changed files with 2 additions and 2 deletions

View file

@ -58,7 +58,7 @@ Curve Curve::buildCurveFromHeader(
}
Curve Curve::buildFromVelcurvePoints(
const std::vector<std::pair<uint8_t, float>>& points,
absl::Span<const std::pair<uint8_t, float>> points,
Interpolator itp, bool invert)
{
Curve curve;

View file

@ -75,7 +75,7 @@ public:
* @param invert whether to invert the curve
*/
static Curve buildFromVelcurvePoints(
const std::vector<std::pair<uint8_t, float>>& points,
absl::Span<const std::pair<uint8_t, float>> points,
Interpolator itp = Interpolator::Linear, bool invert = false);
/**