From 9a15dac3f36c5c89431f7993bcbacba1b016dba5 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Fri, 21 May 2021 21:33:41 -0700 Subject: [PATCH] make the Rectangles parameter to generateXConstraints const This no longer needs to be mutable. --- lib/vpsc/generate-constraints.cpp | 2 +- lib/vpsc/generate-constraints.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/vpsc/generate-constraints.cpp b/lib/vpsc/generate-constraints.cpp index 7349bf571..5c9058987 100644 --- a/lib/vpsc/generate-constraints.cpp +++ b/lib/vpsc/generate-constraints.cpp @@ -139,7 +139,7 @@ static bool compare_events(const Event &ea, const Event &eb) { * useNeighbourLists determines whether or not a heuristic is used to deciding whether to resolve * all overlap in the x pass, or leave some overlaps for the y pass. */ -int generateXConstraints(vector &rs, Variable** vars, +int generateXConstraints(const vector &rs, Variable** vars, Constraint** &cs, const bool useNeighbourLists) { vector events; diff --git a/lib/vpsc/generate-constraints.h b/lib/vpsc/generate-constraints.h index 1b22d4a36..ef1e1c70f 100644 --- a/lib/vpsc/generate-constraints.h +++ b/lib/vpsc/generate-constraints.h @@ -77,7 +77,7 @@ struct Variable; struct Constraint; // returns number of constraints generated -int generateXConstraints(std::vector &rs, Variable** vars, +int generateXConstraints(const std::vector &rs, Variable** vars, Constraint** &cs, const bool useNeighbourLists); int generateYConstraints(std::vector &rs, Variable** vars, Constraint** &cs); -- 2.50.1