From 30a1683f65fa0d01eceb7e1293abc84108d76e7f Mon Sep 17 00:00:00 2001 From: Sona Kurazyan Date: Thu, 29 Oct 2020 12:41:11 +0100 Subject: Remove the comparison operators of QFuture These operators don't do what the user might expect and may lead to confusing results. [ChangeLog][Source-Incompatible Changes][QFuture] The comparison operators of QFuture have been removed. They were comparing the underlying d-ptrs instead of comparing the results (as the users might expect), which is not very helpful for the users point of view. Change-Id: I80a887610eac38b60329128cca52cdb5fb515207 Reviewed-by: Sona Kurazyan Reviewed-by: Allan Sandfeld Jensen --- src/corelib/thread/qfuture.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/corelib/thread/qfuture.h') diff --git a/src/corelib/thread/qfuture.h b/src/corelib/thread/qfuture.h index 70cc206f13..c5966f7893 100644 --- a/src/corelib/thread/qfuture.h +++ b/src/corelib/thread/qfuture.h @@ -101,9 +101,6 @@ public: operator T() const; #endif - bool operator==(const QFuture &other) const { return (d == other.d); } - bool operator!=(const QFuture &other) const { return (d != other.d); } - void cancel() { d.cancel(); } bool isCanceled() const { return d.isCanceled(); } -- cgit v1.2.3