Skip to content
Snippets Groups Projects
Commit 582661a5 authored by hjk's avatar hjk
Browse files

TaskManager: Remove the explicit use of Core::Id::toUniqueIdentifier()


Directly comparing the Ids gives the same effect of a stable
(but unpredictable) sort.

Change-Id: Iaf54a127b02f2a89eeff9b6d008575bb899ef926
Reviewed-by: default avatarDaniel Teske <daniel.teske@theqtcompany.com>
parent c990c3c3
No related branches found
No related tags found
No related merge requests found
...@@ -137,9 +137,9 @@ bool operator<(const Task &a, const Task &b) ...@@ -137,9 +137,9 @@ bool operator<(const Task &a, const Task &b)
// Can't happen // Can't happen
return true; return true;
} else { } else {
if (a.category.uniqueIdentifier() < b.category.uniqueIdentifier()) if (a.category < b.category)
return true; return true;
if (b.category.uniqueIdentifier() < a.category.uniqueIdentifier()) if (b.category < a.category)
return false; return false;
return a.taskId < b.taskId; return a.taskId < b.taskId;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment