Skip to content

Commit 95f599e

Browse files
Mark argument const for identifiers resolution
EXplicit that it is not modified by the function.
1 parent ba7578d commit 95f599e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/solvers/strings/string_refinement.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ static void add_string_equation_to_symbol_resolution(
464464
/// \param stream: output stream
465465
/// \return union_find_replacet structure containing the correspondences.
466466
union_find_replacet string_identifiers_resolution_from_equations(
467-
std::vector<equal_exprt> &equations,
467+
const std::vector<equal_exprt> &equations,
468468
const namespacet &ns,
469469
messaget::mstreamt &stream)
470470
{

src/solvers/strings/string_refinement.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ exprt substitute_array_lists(exprt expr, std::size_t string_max_length);
122122

123123
// Declaration required for unit-test:
124124
union_find_replacet string_identifiers_resolution_from_equations(
125-
std::vector<equal_exprt> &equations,
125+
const std::vector<equal_exprt> &equations,
126126
const namespacet &ns,
127127
messaget::mstreamt &stream);
128128

0 commit comments

Comments
 (0)