[Development] Removing QBool?
lars.knoll at nokia.com
lars.knoll at nokia.com
Sat Jan 7 16:38:50 CET 2012
On 1/7/12 1:58 AM, "ext Thiago Macieira" <thiago.macieira at intel.com> wrote:
>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.
+1.
Lars
>
>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
>_______________________________________________
>Development mailing list
>Development at qt-project.org
>http://lists.qt-project.org/mailman/listinfo/development
More information about the Development
mailing list