On sexta-feira, 13 de julho de 2012 15.58.20, Olivier Goffart wrote:
> 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)

And it's fixed.
--
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
     Intel Sweden AB - Registration Number: 556189-6027
     Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Development mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to