Skip to content
  • Igor Kushnir's avatar
    KTextEditorPreview::KPartView: optimize shortcut code · 7f1b6742
    Igor Kushnir authored
    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.
    7f1b6742