diff --git a/editor/editor_tests/opening_hours_ui_test.cpp b/editor/editor_tests/opening_hours_ui_test.cpp index 700c339feb..ec4750e06d 100644 --- a/editor/editor_tests/opening_hours_ui_test.cpp +++ b/editor/editor_tests/opening_hours_ui_test.cpp @@ -7,7 +7,7 @@ using namespace editor::ui; UNIT_TEST(TestTimeTable) { { - TimeTable tt; + TimeTable tt = TimeTable::GetUninitializedTimeTable(); TEST(!tt.IsValid(), ()); } { diff --git a/editor/editor_tests/ui2oh_test.cpp b/editor/editor_tests/ui2oh_test.cpp index 853c536ab0..520936a9dc 100644 --- a/editor/editor_tests/ui2oh_test.cpp +++ b/editor/editor_tests/ui2oh_test.cpp @@ -249,7 +249,7 @@ UNIT_TEST(TimeTableSt2OpeningHours) TEST(tt.Commit(), ()); } { - TimeTable tt; + TimeTable tt = TimeTable::GetUninitializedTimeTable(); TEST(tt.SetOpeningDays({ osmoh::Weekday::Monday, osmoh::Weekday::Friday, @@ -278,7 +278,7 @@ UNIT_TEST(TimeTableSt2OpeningHours) TEST(tt.Commit(), ()); } { - TimeTable tt; + TimeTable tt = TimeTable::GetUninitializedTimeTable(); TEST(tt.SetOpeningDays({ osmoh::Weekday::Saturday, osmoh::Weekday::Sunday}), ()); @@ -326,7 +326,7 @@ UNIT_TEST(TimeTableSt2OpeningHours) TEST(tt.Commit(), ()); } { - TimeTable tt; + TimeTable tt = TimeTable::GetUninitializedTimeTable(); TEST(tt.SetOpeningDays({osmoh::Weekday::Saturday}), ()); tt.SetTwentyFourHours(false);