1
0
Fork 0

FGPUIMenuBar: small optimization (requires C++17)

This commit is contained in:
Florent Rougon 2022-08-18 17:39:08 +02:00
parent afe7d996af
commit a502de9e81

View file

@ -210,8 +210,7 @@ FGPUIMenuBar::make_menu (SGPropertyNode * node)
callbacks[j] = menu_callback;
// Add an element (vector) that will contain all bindings assigned
// to the menu entry.
_bindings.emplace_front();
auto& bindingsVec = _bindings.front();
auto& bindingsVec = _bindings.emplace_front();
userdata[j] = &bindingsVec;
// Load all the bindings for this item