~ci-train-bot/unity-scopes-shell/unity-scopes-shell-ubuntu-yakkety-landing-021

Viewing all changes in revision 344.

  • Committer: Bileto Bot
  • Author(s): Albert Astals Cid
  • Date: 2016-09-27 07:32:21 UTC
  • mfrom: (337.2.1 unity-scopes-shell)
  • Revision ID: ci-train-bot@canonical.com-20160927073221-hr113si9tf7rplza
Optimize ResultsModel::data a bit

Do the role to component string early in ::setComponentsMapping instead of every time in ::data
This way we do not need to create temporary strings every time ::data gets called

Also since we know there's a finite amount of roles, store the role->string mapping in a vector instead of a map/hash

Approved by: Marcus Tomlinson

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: