diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-07-18 03:18:26 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-07-18 03:18:26 +0300 |
commit | d102d9fd8b856d8cc04f8d58375955d297a33676 (patch) | |
tree | b9fecbe2b15b6b109eed3ed399f2513a70367055 /src | |
parent | 4a18ed6bb9a8e8f32ab287a0828d6f68ee6f77c6 (diff) | |
download | mv-d102d9fd8b856d8cc04f8d58375955d297a33676.tar.gz mv-d102d9fd8b856d8cc04f8d58375955d297a33676.tar.bz2 mv-d102d9fd8b856d8cc04f8d58375955d297a33676.tar.xz mv-d102d9fd8b856d8cc04f8d58375955d297a33676.zip |
Fix unit tests compilation.
Diffstat (limited to 'src')
-rw-r--r-- | src/unittests/gui/windowmanager_unittest.cc | 6 |
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") |