FGPUIMenuBar: small optimization (requires C++17)
This commit is contained in:
parent
afe7d996af
commit
a502de9e81
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue