On Friday 13 July 2012 09:44:05 Stephen Chu wrote: > On 7/7/12 4:32 PM, Thiago Macieira wrote:
> However, 3.2 (trunk 160101) generates the following warning: > > /Qt/5.0/qtbase/include/QtCore/../../src/corelib/tools/qsharedpointer_impl.h: > 613:49: warning: field is uninitialized when used here [-Wuninitialized] > inline QWeakPointer(X *ptr, bool) : d(ptr ? d->getAndRef(ptr) : 0), > value(ptr) > ^ > > The warning makes sense to me on the appearance. Don't know enough about > internal stuffs to be sure though. getAndRef is static, so it does not matter. But it is true the code should be changed to Data::getAndRef(ptr) -- Olivier Woboq - Qt services and support - http://woboq.com _______________________________________________ Development mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/development
