-
Committer:
Bileto Bot
-
Author(s):
Albert Astals Cid
-
Date:
2016-10-04 08:59:04 UTC
-
mfrom:
(337.2.1 unity-scopes-shell)
-
Revision ID:
ci-train-bot@canonical.com-20161004085904-z2xyojwqkufit1kv
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