crash fix in designersupport
authorThomas Hartmann <Thomas.Hartmann@digia.com>
Mon, 8 Oct 2012 08:34:09 +0000 (10:34 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 9 Oct 2012 09:23:09 +0000 (11:23 +0200)
commit5ed77ed046873f9df293753b05a4c5eee0b1f61d
tree16195d0577752245421a48ba31f0fbeb2628d23d
parent67eb7a3763b4003768dd10c65f8043fef39fbf8d
crash fix in designersupport

Unless result is an insert iterator, qCopy()
assumes that all iterators in the range
[result + (finish - start)] are dereferenceable.
This is not the case for an empty list.

Using foreach instead.

Change-Id: I2212a88e9b462ae2220ba5aeb43c662592cec57f
Reviewed-by: Marco Bubke <marco.bubke@digia.com>
src/quick/designer/designersupport.cpp