KTextEditorPreview::KPartView: optimize shortcut code
This commit optimizes code added in 40ec8280. * QHash should be faster than QMap; * Make temporary container variables const to prevent detaching; * `auto shortcut` => `const auto &shortcut` to prevent unnecessary copying of QKeySequence, which has non-inline copy constructor.
Please register or sign in to comment