Simplify retrieving values from std::pair

Use std::tie to unpack a std::pair.
This commit is contained in:
Artur Wieczorek 2023-01-06 17:20:07 +02:00
parent 0c97244747
commit f60bf021d5

View file

@ -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 )
{