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) {
|
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);
|
||||||
|
|
Loading…
Reference in a new issue