|author||Marc Mutz <email@example.com>||2012-02-24 22:27:32 +0100|
|committer||Qt by Nokia <firstname.lastname@example.org>||2012-03-01 17:03:29 +0100|
QtGlobal: remove qIsDetached()
There's not a single in-tree user of this function, and the concept is a broken one in MT programs: By the time qIsDetached() returns, the result can already be different due to another thread taking a copy, or a copy in another thread being destroyed (note that this doesn't require mutex use by the user, since we promise (implicitly, if not explicitly) that you can copy from const objects without holding a lock). QTBUG-10813 talks about a use in QCache::trim(), but 677cf76340f88e0fe51c1f75aa512b6d835414ca removed it, so there's no reason to keep it anymore. Change-Id: I20380c12bdf00ac764b89d84392f0f34727b1971 Reviewed-by: Lars Knoll <email@example.com>
Diffstat (limited to 'dist')
1 files changed, 2 insertions, 0 deletions
diff --git a/dist/changes-5.0.0 b/dist/changes-5.0.0
index 5a9ce7e6c7..e1f1f07203 100644
@@ -45,6 +45,8 @@ information about a particular change.
in Qt4, so these methods return a bool now. If your code used the undocumented
QBool, simply replace it with bool.
+- qIsDetached<> has been removed without replacement.
* QMetaType::construct() has been renamed to QMetaType::create().
* QMetaType::unregisterType() has been removed.