Fix compile error: old g++ does not like c-like struct initialization

This commit is contained in:
Mathias Gumz 2015-01-19 08:29:48 +01:00
parent 11566bbb83
commit 382d7be6f6

View file

@ -1408,11 +1408,10 @@ float BScreen::getYGap(int head) {
void BScreen::setupConfigmenu(FbTk::Menu &menu) {
struct ConfigMenu::SetupHelper sh = {
.screen = *this,
.rm = m_resource_manager,
.resource = resource,
};
struct ConfigMenu::SetupHelper sh;
sh.screen = *this;
sh.rm = m_resource_manager;
sh.resource = resource;
menu.removeAll();
ConfigMenu::setup(menu, sh);