From 382d7be6f6edb8841198e5751847bfa32c421b8b Mon Sep 17 00:00:00 2001 From: Mathias Gumz Date: Mon, 19 Jan 2015 08:29:48 +0100 Subject: Fix compile error: old g++ does not like c-like struct initialization --- src/Screen.cc | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/Screen.cc b/src/Screen.cc index b321d85..666bb3e 100644 --- a/src/Screen.cc +++ b/src/Screen.cc @@ -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); -- cgit v0.11.2