[Interest] Operator QMap<uint, uint>[] is casting to int?

Roland Hughes roland at logikalsolutions.com
Thu May 16 01:55:25 CEST 2019


On 5/14/19 5:00 AM, interest-request at qt-project.org wrote:
> On Saturday, 11 May 2019 09:02:34 PDT Roland Hughes wrote:
>> You can add methods which allow for good software engineering. For
>> everyone of the existing hacks you can add a "u" version which returns
>> an unsigned value and on failure a 0 while setting the failure bool.
> Won't do. That's a final decision.

Okay. Be aware that at some point a chicken like these will come home to 
roost.

https://www.aboutlawsuits.com/medtronic-minimed-wrongful-death-lawsuit-141763/

https://www.cssfirm.com/2011/03/11/fentanyl-overdose-from-defective-pain-pump/

Never worked on those. Never worked for that client. Have worked with 
quite a few people who've worked on projects for them and they use quite 
a bit of Qt.

Treating signed values as unsigned can be fatal.

I'm done making the case now.

-- 
Roland Hughes, President
Logikal Solutions
(630)-205-1593  (cell)
http://www.theminimumyouneedtoknow.com
http://www.infiniteexposure.net
http://www.johnsmith-book.com




More information about the Interest mailing list