[Qt-interest] Follow-up "QHash::const_iterator not reentrant?"
Andreas Pakulat
apaku at gmx.de
Mon Aug 22 17:11:16 CEST 2011
On 22.08.11 15:54:56, BOUCARD Olivier wrote:
> Hi everyone,
>
> I am coming back to you as I found the same problem on a more critical part of my code.
> I join a small piece of code which reproduce the problem.
> I really don't know where is the problem, this is probably not a reentrancy problem.
You're mixing non-const with const iterators, thats your problem.
Replace the begin/end with constBegin/constEnd in receiverworker.cpp and
the example works fine.
Andreas
More information about the Qt-interest-old
mailing list