From: Matthew Fernandez Date: Sat, 22 May 2021 04:33:41 +0000 (-0700) Subject: make the Rectangles parameter to generateXConstraints const X-Git-Tag: 2.47.3~25^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9a15dac3f36c5c89431f7993bcbacba1b016dba5;p=graphviz make the Rectangles parameter to generateXConstraints const This no longer needs to be mutable. --- 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);