From 5fe418376e4a53cf77c936ed24bef6d7736260e4 Mon Sep 17 00:00:00 2001 From: wvpm <24685035+wvpm@users.noreply.github.com> Date: Wed, 30 Oct 2024 22:13:11 +0100 Subject: Use normal const for fixed_point_t --- src/openvic-simulation/modifier/ModifierValue.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/openvic-simulation/modifier/ModifierValue.cpp') diff --git a/src/openvic-simulation/modifier/ModifierValue.cpp b/src/openvic-simulation/modifier/ModifierValue.cpp index e3e7b0b..4461048 100644 --- a/src/openvic-simulation/modifier/ModifierValue.cpp +++ b/src/openvic-simulation/modifier/ModifierValue.cpp @@ -96,14 +96,14 @@ ModifierValue ModifierValue::operator-(ModifierValue const& right) const { return copy -= right; } -ModifierValue& ModifierValue::operator*=(fixed_point_t const& right) { +ModifierValue& ModifierValue::operator*=(const fixed_point_t right) { for (auto value : mutable_iterator(values)) { value.second *= right; } return *this; } -ModifierValue ModifierValue::operator*(fixed_point_t const& right) const { +ModifierValue ModifierValue::operator*(const fixed_point_t right) const { ModifierValue copy = *this; return copy *= right; } -- cgit v1.2.3-56-ga3b1