diff --git a/src/propgrid/propgrid.cpp b/src/propgrid/propgrid.cpp index 155a60c42c..6969a41808 100644 --- a/src/propgrid/propgrid.cpp +++ b/src/propgrid/propgrid.cpp @@ -5649,9 +5649,9 @@ void wxPropertyGrid::HandleKeyEvent( wxKeyEvent &event, bool fromChild ) return; } - std::pair 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 ) {