[Interest] .remove() feature?

Roland Hughes roland at logikalsolutions.com
Fri Sep 23 15:36:07 CEST 2016


Lorenz,

Good call. I went back through the code. Was actually a QList<> not a 
QHash, but . . . your mention of shared was the light which shined on 
the monster. The pointer held in the QList was a pointer to an object 
declared with CANBUSSHARED_EXPORT.

Thank you very much!

I hate mystery fixes.

Roland


On 09/23/2016 08:06 AM, Lorenz Haas wrote:
>> It was a C++ for (int x=0;...) loop, but we are compiling for C++ 11
> Hm, then my guess would be that they were working on a QHash/container
> that was shared and the first remove() performed a detach. Thus the
> loop worked on a copy.
>
> Best
> Lorenz




More information about the Interest mailing list