Fix compile error: old g++ does not like c-like struct initialization
This commit is contained in:
parent
11566bbb83
commit
382d7be6f6
1 changed files with 4 additions and 5 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue