Simplify retrieving values from std::pair
Use std::tie to unpack a std::pair.
This commit is contained in:
parent
0c97244747
commit
f60bf021d5
1 changed files with 3 additions and 3 deletions
|
|
@ -5649,9 +5649,9 @@ void wxPropertyGrid::HandleKeyEvent( wxKeyEvent &event, bool fromChild )
|
|||
return;
|
||||
}
|
||||
|
||||
std::pair<int, int> actions = KeyEventToActions(event);
|
||||
int action = actions.first;
|
||||
int secondAction = actions.second;
|
||||
int action;
|
||||
int secondAction;
|
||||
std::tie(action, secondAction) = KeyEventToActions(event);
|
||||
|
||||
if ( editorFocused && action == wxPG_ACTION_CANCEL_EDIT )
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue