Merge lp:~schwann/gallery-app/gallery-fatser-dtae-compare into lp:gallery-app

Proposed by Günter Schwann
Status: Merged
Approved by: Gustavo Pichorim Boiko
Approved revision: 776
Merged at revision: 776
Proposed branch: lp:~schwann/gallery-app/gallery-fatser-dtae-compare
Merge into: lp:gallery-app
Diff against target: 14 lines (+2/-2)
1 file modified
src/media/media-collection.cpp (+2/-2)
To merge this branch: bzr merge lp:~schwann/gallery-app/gallery-fatser-dtae-compare
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Approve
Gustavo Pichorim Boiko (community) Approve
Review via email: mp+175089@code.launchpad.net

Commit message

Minor performance improvement comparing MediaSource dates

To post a comment you must log in.
Revision history for this message
Gustavo Pichorim Boiko (boiko) wrote :

Looks good.

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) :
review: Approve (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/media/media-collection.cpp'
2--- src/media/media-collection.cpp 2013-07-05 08:12:31 +0000
3+++ src/media/media-collection.cpp 2013-07-16 17:38:29 +0000
4@@ -53,8 +53,8 @@
5 bool MediaCollection::exposureDateTimeAscendingComparator(DataObject* a,
6 DataObject* b)
7 {
8- QDateTime exptime_a = qobject_cast<MediaSource*>(a)->exposureDateTime();
9- QDateTime exptime_b = qobject_cast<MediaSource*>(b)->exposureDateTime();
10+ const QDateTime &exptime_a = qobject_cast<MediaSource*>(a)->exposureDateTime();
11+ const QDateTime &exptime_b = qobject_cast<MediaSource*>(b)->exposureDateTime();
12
13 return (exptime_a == exptime_b) ?
14 (DataCollection::defaultDataObjectComparator(a, b)) :

Subscribers

People subscribed via source and target branches