[Development] Removing QBool?
Thiago Macieira
thiago.macieira at intel.com
Sat Jan 7 01:58:34 CET 2012
On Saturday, 7 de January de 2012 01.03.50, David Faure wrote:
> Shouldn't we clean that up for Qt5 and just use a bool for the contains
> method again? The Qt4 API ensures that nobody still has if (contains()==2)
> in their code anyway.
I think it should be gone.
For the few methods where a boolean is needed and arithmetic is wrong, the
suggestion is to use the RestrictedBool solution:
typedef int ClassName:: *RestrictedBool;
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
Intel Sweden AB - Registration Number: 556189-6027
Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/development/attachments/20120106/10d2b042/attachment.sig>
More information about the Development
mailing list