From d102d9fd8b856d8cc04f8d58375955d297a33676 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 18 Jul 2017 03:18:26 +0300 Subject: Fix unit tests compilation. --- src/unittests/gui/windowmanager_unittest.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/unittests/gui/windowmanager_unittest.cc b/src/unittests/gui/windowmanager_unittest.cc index 1a7ff7b61..57f35bf59 100644 --- a/src/unittests/gui/windowmanager_unittest.cc +++ b/src/unittests/gui/windowmanager_unittest.cc @@ -658,12 +658,14 @@ TEST_CASE("Windows tests", "windowmanager") SECTION("StatusWindow") { GroupDb::GroupInfos &groups = GroupDb::getGroups(); - groups[0].name = std::string(); - groups[0].longName = std::string(); + groups[0] = new GroupInfo; + groups[0]->name = std::string(); + groups[0]->longName = std::string(); CREATEWIDGETV0(statusWindow, StatusWindow); gui->draw(); mainGraphics->updateScreen(); delete2(statusWindow); + delete groups[0]; groups.clear(); } SECTION("TextCommandEditor") -- cgit v1.2.3-70-g09d2