From 582661a5bd1f2f0eeab90fa043ec866b68fbf020 Mon Sep 17 00:00:00 2001
From: hjk <hjk@theqtcompany.com>
Date: Fri, 19 Jun 2015 14:37:17 +0200
Subject: [PATCH] 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: Daniel Teske <daniel.teske@theqtcompany.com>
---
 src/plugins/projectexplorer/task.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/plugins/projectexplorer/task.cpp b/src/plugins/projectexplorer/task.cpp
index eabf8063e18..2f83d14e512 100644
--- a/src/plugins/projectexplorer/task.cpp
+++ b/src/plugins/projectexplorer/task.cpp
@@ -137,9 +137,9 @@ bool operator<(const Task &a, const Task &b)
         // Can't happen
         return true;
     } else {
-        if (a.category.uniqueIdentifier() < b.category.uniqueIdentifier())
+        if (a.category < b.category)
             return true;
-        if (b.category.uniqueIdentifier() < a.category.uniqueIdentifier())
+        if (b.category < a.category)
             return false;
         return a.taskId < b.taskId;
     }
-- 
GitLab