Use QUrl < instead of QString.compare
ClosedPublic

Authored by jtamate on Jun 18 2018, 3:43 PM.

Details

Summary

Remove the lessThan method.
std::sort will use QUrl < operator (since Qt 5.4).

Diff Detail

Repository
R241 KIO
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
jtamate created this revision.Jun 18 2018, 3:43 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptJun 18 2018, 3:43 PM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
jtamate requested review of this revision.Jun 18 2018, 3:43 PM
dfaure requested changes to this revision.Jun 18 2018, 4:14 PM

Well then you can just remove lessThan altogether, and call std::sort with only 2 arguments instead of 3 ;)

This revision now requires changes to proceed.Jun 18 2018, 4:14 PM
jtamate updated this revision to Diff 36283.Jun 18 2018, 4:45 PM
jtamate edited the summary of this revision. (Show Details)

You're right :-)

dfaure accepted this revision.Jun 18 2018, 6:49 PM
This revision is now accepted and ready to land.Jun 18 2018, 6:49 PM
This revision was automatically updated to reflect the committed changes.