Skip to content

Commit 3dd8fe5

Browse files
authored
Merge pull request #1352 from janmroczkowski/janmroczkowski/syntactic_diff-instead-of-pointer
Replace syntactic_difft pointer by automatic variable
2 parents 59c882b + 2e04c17 commit 3dd8fe5

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/goto-diff/goto_diff_parse_options.cpp

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -319,14 +319,10 @@ int goto_diff_parse_optionst::doit()
319319
return 0;
320320
}
321321

322-
std::unique_ptr<goto_difft> goto_diff=
323-
util_make_unique<syntactic_difft>(
324-
goto_model1, goto_model2, get_message_handler());
325-
goto_diff->set_ui(get_ui());
326-
327-
(*goto_diff)();
328-
329-
goto_diff->output_functions(std::cout);
322+
syntactic_difft sd(goto_model1, goto_model2, get_message_handler());
323+
sd.set_ui(get_ui());
324+
sd();
325+
sd.output_functions(std::cout);
330326

331327
return 0;
332328
}

0 commit comments

Comments
 (0)