When hunting can't convert to bool errors, almost all of them were QString, 
but I found some QPixmap::mask() errors.  I can't find anything clear in the 
guides, and I'm going on intuition, but it seems like the right thing to do 
is use similar language and swap isNull() for isEmpty() in these cases.

    if (q_pixmap_object.mask())

becomes

    if (!q_pixmap_object.mask().isNull())

I think.

I seriously love this whole bool issue.  It has turned hundreds of tidy and 
immediately obvious things into a bunch of obfuscated looking junk, even 
though it appears the idea behind this was to make everything more obvious.

Sigh.

I'm doing a testing round to see how I fare, but I think I got rid of ALL the 
can't convert blah to bool errors in the whole damn source tree, and just a 
hair before midnight, so about three hours, including answering some emails.
-- 
D. Michael McIntyre 

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Rosegarden-devel mailing list
[email protected] - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-devel

Reply via email to