~stolowski/unity-scopes-shell/fix-current-nav-id

Viewing all changes in revision 171.

  • Committer: CI bot
  • Author(s): Albert Astals
  • Date: 2014-11-28 08:52:30 UTC
  • mfrom: (165.3.1 unity-scopes-shell)
  • Revision ID: ps-jenkins@lists.canonical.com-20141128085230-16tmidv135yhgw55
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() 
Approved by: Pawel Stolowski, PS Jenkins bot

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: