[Development] Removing QBool?
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: not available
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/development/attachments/20120106/10d2b042/attachment-0001.bin
More information about the Development