Skip to content

Commit b19a39c

Browse files
committed
small cleanups
1 parent db0c467 commit b19a39c

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

ortools/algorithms/find_graph_symmetries_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ TEST_F(FindSymmetriesTest, CyclesOfDifferentLength) {
374374
// This can be used to convert a list of M undirected edges into the list of
375375
// 2*M corresponding directed arcs.
376376
std::vector<std::pair<int, int>> AppendReversedPairs(
377-
const std::vector<std::pair<int, int>>& pairs) {
377+
absl::Span<const std::pair<int, int>> pairs) {
378378
std::vector<std::pair<int, int>> out;
379379
out.reserve(pairs.size() * 2);
380380
out.insert(out.begin(), pairs.begin(), pairs.end());

ortools/sat/precedences.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ void PrecedenceRelations::Build() {
308308
}
309309

310310
void PrecedenceRelations::ComputeFullPrecedences(
311-
const std::vector<IntegerVariable>& vars,
311+
absl::Span<const IntegerVariable> vars,
312312
std::vector<FullIntegerPrecedence>* output) {
313313
output->clear();
314314
if (!is_built_) Build();

ortools/sat/precedences.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ class PrecedenceRelations : public ReversibleInterface {
9898
// support the general non-DAG cases.
9999
//
100100
// TODO(user): Many relations can be redundant. Filter them.
101-
void ComputeFullPrecedences(const std::vector<IntegerVariable>& vars,
101+
void ComputeFullPrecedences(absl::Span<const IntegerVariable> vars,
102102
std::vector<FullIntegerPrecedence>* output);
103103

104104
// Returns a set of precedences (var, index) such that var is after

ortools/sat/python/cp_model_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1252,7 +1252,6 @@ def testSearchForAllSolutions(self):
12521252
status = solver.solve(model, solution_counter)
12531253
self.assertEqual(cp_model.OPTIMAL, status)
12541254
self.assertEqual(5, solution_counter.solution_count)
1255-
model.minimize(x)
12561255

12571256
def testSolveWithSolutionCallback(self):
12581257
print("testSolveWithSolutionCallback")

0 commit comments

Comments
 (0)