[Development] RFC: Deprecating setSharable / isSharable in our containers and QString

Tony Van Eerd tvaneerd at blackberry.com
Thu Feb 20 17:45:19 CET 2014



> -----Original Message-----
> On Behalf Of Thiago Macieira
> Subject: [Development] RFC: Deprecating setSharable / isSharable in our
> containers and QString
> 
> ... and removing them in Qt 6
> 
> Please raise your hand if you knew we had that feature.
> 

They aren't even documented, are they? (ie http://qt-project.org/doc/qt-5.0/qtcore/qvector-members.html )

And I couldn't find it on QString http://code.woboq.org/qt5/qtbase/src/corelib/tools/qstring.h.html 

what about:

detach()
isDetached()
isSharedWith()

couldn't all these be "noops" and/or return true/false, etc, without breaking any code?  Isn't that the point of COW - you don't need to know?

Tony






More information about the Development mailing list