On 1/7/12 1:58 AM, "ext Thiago Macieira" <thiago.macie...@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@qt-project.org >http://lists.qt-project.org/mailman/listinfo/development _______________________________________________ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo/development