Add workaround for gcc 4.6 constructor brace initialization
Reported-by: btb <https://github.com/dxx-rebirth/dxx-rebirth/pull/54#issuecomment-86252358>
This commit is contained in:
parent
75680578e1
commit
c4bcbb0403
|
@ -62,7 +62,7 @@ struct d_change_event : d_event
|
|||
{
|
||||
int citem;
|
||||
d_change_event(const int c) :
|
||||
d_event{EVENT_NEWMENU_CHANGED}, citem(c)
|
||||
d_event(d_event{EVENT_NEWMENU_CHANGED}), citem(c)
|
||||
{
|
||||
}
|
||||
};
|
||||
|
@ -71,7 +71,7 @@ struct d_select_event : d_event
|
|||
{
|
||||
int citem;
|
||||
d_select_event(const int c) :
|
||||
d_event{EVENT_NEWMENU_SELECTED}, citem(c)
|
||||
d_event(d_event{EVENT_NEWMENU_SELECTED}), citem(c)
|
||||
{
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue