aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorhjk <[email protected]>2015-06-19 14:37:17 +0200
committerhjk <[email protected]>2015-06-23 09:03:29 +0000
commit582661a5bd1f2f0eeab90fa043ec866b68fbf020 (patch)
tree96c7930312a33f3a18bc56928b04fd7738485132 /src/plugins
parentc990c3c37f368c075f092086388159e42f3a3783 (diff)
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 <[email protected]>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/projectexplorer/task.cpp4
1 files 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;
}