From 326d6b2a2a4d5487d0b574d8ca0073ea8f1ac044 Mon Sep 17 00:00:00 2001 From: Bence Magyar Date: Mon, 4 Nov 2024 11:27:40 +0000 Subject: [PATCH] Apply suggestions from code review --- test/realtime_box_best_effort_tests.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/realtime_box_best_effort_tests.cpp b/test/realtime_box_best_effort_tests.cpp index 3af469ec..5f1da7cb 100644 --- a/test/realtime_box_best_effort_tests.cpp +++ b/test/realtime_box_best_effort_tests.cpp @@ -86,9 +86,7 @@ TEST(RealtimeBoxBestEffort, non_default_constructable) } TEST(RealtimeBoxBestEffort, standard_get) { - DefaultConstructable data_construct; - data_construct.a = 1000; - RealtimeBoxBestEffort box(data_construct); + RealtimeBoxBestEffort box(DefaultConstructable{1000}); DefaultConstructable data; box.get(data);