[Interest] Need argumentative help..... giving qobject copy/assignment constructor and put it in qlist/qmap

Jérôme Godbout jerome at bodycad.com
Thu Jul 23 19:46:28 CEST 2015


Nice! good to known, thanks Thiago

On Thu, Jul 23, 2015 at 1:23 PM, Thiago Macieira <thiago.macieira at intel.com>
wrote:

> On Thursday 23 July 2015 09:21:13 Jérôme Godbout wrote:
> > I admit the int to unsigned
> > int is also a problem to become, -1 lead to 2^32 - 1, we can only do that
> > if you known negative number aren't used and should do a static_cast
> > or reinterpret_cast according to the situation and handle the conversion
> > properly.
>
> I've fixed most uses of -1 on unsigned types, as ICC complains about that
> too.
> The fix is simple: write ~0 instead of -1.
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
>   Software Architect - Intel Open Source Technology Center
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20150723/73eebec9/attachment.html>


More information about the Interest mailing list