summaryrefslogtreecommitdiff
path: root/src/unittests
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 /src/unittests
parent4a18ed6bb9a8e8f32ab287a0828d6f68ee6f77c6 (diff)
downloadplus-d102d9fd8b856d8cc04f8d58375955d297a33676.tar.gz
plus-d102d9fd8b856d8cc04f8d58375955d297a33676.tar.bz2
plus-d102d9fd8b856d8cc04f8d58375955d297a33676.tar.xz
plus-d102d9fd8b856d8cc04f8d58375955d297a33676.zip
Fix unit tests compilation.
Diffstat (limited to 'src/unittests')
-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")