Skip to content

Commit

Permalink
Update time/height in .h too
Browse files Browse the repository at this point in the history
  • Loading branch information
rhartert committed Oct 20, 2024
1 parent e304e4a commit b57e0df
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ortools/sat/timetable_horizontal_edgefinding.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,12 @@ class HorizontallyElasticOverloadChecker : public PropagatorInterface {
// profile.
struct ProfileEvent {
/* const */ int task_id;
/* const */ IntegerValue time;
/* const */ IntegerValue height;
/* const */ ProfileEventType event_type;
IntegerValue time;
IntegerValue height;

ProfileEvent(int task_id, IntegerValue time, IntegerValue height, ProfileEventType event_type)
: task_id(task_id), time(time), height(height), event_type(event_type) {}
ProfileEvent(int task_id, ProfileEventType event_type, IntegerValue time, IntegerValue height)
: task_id(task_id), event_type(event_type), time(time), height(height) {}

bool operator<(const ProfileEvent& other) const {
return time < other.time;
Expand Down

0 comments on commit b57e0df

Please sign in to comment.