From e5f3910c3ee1f6b779455fb1516ab3c985383d8e Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Wed, 4 May 2022 12:02:39 -0400 Subject: Add new FileInputSource constructors --- libtests/closed_file_input_source.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libtests') diff --git a/libtests/closed_file_input_source.cc b/libtests/closed_file_input_source.cc index ff5354fb..e4c8ed36 100644 --- a/libtests/closed_file_input_source.cc +++ b/libtests/closed_file_input_source.cc @@ -73,8 +73,7 @@ main() do_tests(&cf2); cf2.stayOpen(false); std::cout << "testing with FileInputSource\n"; - FileInputSource f; - f.setFilename("input"); + FileInputSource f("input"); do_tests(&f); std::cout << "all assertions passed" << std::endl; return 0; -- cgit v1.2.3-54-g00ecf