summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-07-18 03:18:26 +0300
committerAndrei Karas <akaras@inbox.ru>2017-07-18 03:18:26 +0300
commitd102d9fd8b856d8cc04f8d58375955d297a33676 (patch)
treeb9fecbe2b15b6b109eed3ed399f2513a70367055
parent4a18ed6bb9a8e8f32ab287a0828d6f68ee6f77c6 (diff)
downloadmanaverse-d102d9fd8b856d8cc04f8d58375955d297a33676.tar.gz
manaverse-d102d9fd8b856d8cc04f8d58375955d297a33676.tar.bz2
manaverse-d102d9fd8b856d8cc04f8d58375955d297a33676.tar.xz
manaverse-d102d9fd8b856d8cc04f8d58375955d297a33676.zip
Fix unit tests compilation.
-rw-r--r--src/unittests/gui/windowmanager_unittest.cc6
1 files changed, 4 insertions, 2 deletions
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")