Skip to content

Commit 9efb65c

Browse files
author
Daniel Kroening
authored
Merge pull request #1556 from diffblue/revert-1554-janmroczkowski/more-static-member-functions-in-unified_difft
Revert "Make more member function static in unified_difft"
2 parents 3453a89 + 1c96ae5 commit 9efb65c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/goto-diff/unified_diff.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ unified_difft::get_diff(const irep_idt &function) const
5454
unified_difft::goto_program_difft unified_difft::get_diff(
5555
const goto_programt &old_goto_program,
5656
const goto_programt &new_goto_program,
57-
const differencest &differences)
57+
const differencest &differences) const
5858
{
5959
goto_programt::instructionst::const_iterator old_it =
6060
old_goto_program.instructions.begin();
@@ -148,7 +148,7 @@ void unified_difft::lcss(
148148
const irep_idt &identifier,
149149
const goto_programt &old_goto_program,
150150
const goto_programt &new_goto_program,
151-
differencest &differences)
151+
differencest &differences) const
152152
{
153153
std::size_t old_count = old_goto_program.instructions.size();
154154
std::size_t new_count = new_goto_program.instructions.size();

src/goto-diff/unified_diff.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -61,16 +61,16 @@ class unified_difft
6161
const goto_programt &old_goto_program,
6262
const goto_programt &new_goto_program);
6363

64-
static void lcss(
64+
void lcss(
6565
const irep_idt &identifier,
6666
const goto_programt &old_goto_program,
6767
const goto_programt &new_goto_program,
68-
differencest &differences);
68+
differencest &differences) const;
6969

70-
static goto_program_difft get_diff(
70+
goto_program_difft get_diff(
7171
const goto_programt &old_goto_program,
7272
const goto_programt &new_goto_program,
73-
const differencest &differences);
73+
const differencest &differences) const;
7474

7575
void output_diff(
7676
const irep_idt &identifier,

0 commit comments

Comments
 (0)