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) { void BScreen::setupConfigmenu(FbTk::Menu &menu) {
struct ConfigMenu::SetupHelper sh = { struct ConfigMenu::SetupHelper sh;
.screen = *this, sh.screen = *this;
.rm = m_resource_manager, sh.rm = m_resource_manager;
.resource = resource, sh.resource = resource;
};
menu.removeAll(); menu.removeAll();
ConfigMenu::setup(menu, sh); ConfigMenu::setup(menu, sh);