Skip to content

Commit c47ec07

Browse files
committed
tests: Don't call static method via instance
1 parent b2559b7 commit c47ec07

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_hide.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ main(int argc, char* argv[])
4242
auto util = TestUtilities::get_instance();
4343

4444
if (!util->check_command_args(argc, argv))
45-
return util->get_result_and_delete_instance() ? EXIT_SUCCESS : EXIT_FAILURE;
45+
return TestUtilities::get_result_and_delete_instance() ? EXIT_SUCCESS : EXIT_FAILURE;
4646

4747
result_stream << sigc::hide<0>(foo())(1, 2);
4848
util->check_result(result_stream, "foo(int 2) 3");
@@ -59,5 +59,5 @@ main(int argc, char* argv[])
5959
sigc::hide(foo_void())(1); // void test
6060
util->check_result(result_stream, "foo_void()");
6161

62-
return util->get_result_and_delete_instance() ? EXIT_SUCCESS : EXIT_FAILURE;
62+
return TestUtilities::get_result_and_delete_instance() ? EXIT_SUCCESS : EXIT_FAILURE;
6363
}

0 commit comments

Comments
 (0)