This no longer needs to be mutable.
* 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<Rectangle*> &rs, Variable** vars,
+int generateXConstraints(const vector<Rectangle*> &rs, Variable** vars,
Constraint** &cs, const bool useNeighbourLists) {
vector<Event> events;
struct Constraint;
// returns number of constraints generated
-int generateXConstraints(std::vector<Rectangle*> &rs, Variable** vars,
+int generateXConstraints(const std::vector<Rectangle*> &rs, Variable** vars,
Constraint** &cs, const bool useNeighbourLists);
int generateYConstraints(std::vector<Rectangle*> &rs, Variable** vars,
Constraint** &cs);