Merge lp:~aacid/unity-scopes-shell/no_contains_before_value into lp:unity-scopes-shell
Proposed by
Albert Astals Cid
Status: | Merged |
---|---|
Approved by: | Paweł Stołowski |
Approved revision: | 166 |
Merged at revision: | 171 |
Proposed branch: | lp:~aacid/unity-scopes-shell/no_contains_before_value |
Merge into: | lp:unity-scopes-shell |
Diff against target: |
88 lines (+38/-33) 1 file modified
src/Unity/resultsmodel.cpp (+38/-33) |
To merge this branch: | bzr merge lp:~aacid/unity-scopes-shell/no_contains_before_value |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
PS Jenkins bot (community) | continuous-integration | Approve | |
Paweł Stołowski (community) | Approve | ||
Review via email: mp+242750@code.launchpad.net |
Commit message
Don't call Result::contains and then Result::value
Doing that means two searches in the map for every query, we can just call value()
and in the exceptional case it throws catch the exception and return QVariant()
To post a comment you must log in.
Looks, good, +1