Fix access to uninitialized pointer
authorTobias Hunger <tobias.hunger@nokia.com>
Sat, 16 Jun 2012 20:52:03 +0000 (22:52 +0200)
committerQt by Nokia <qt-info@nokia.com>
Wed, 20 Jun 2012 01:18:07 +0000 (03:18 +0200)
commit88cf9402e336fddeb673c92f3c14da47a9f8450b
treeddc8877272697a1c45eb48e6f4500fb0decf94b9
parent958aaf377069368ce409db3f09a6ac3e38af7de2
Fix access to uninitialized pointer

The C++ standard says in 9.4..2 that the object expression is evaluated,
so any compliant compiler may access d. So this syntax is a bug in this
place.

Change-Id: I37d2c4ea54febd40410ca473c906bcb1c66c4974
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
src/corelib/tools/qsharedpointer_impl.h