On Monday 26 October 2009 19:36:36 Albert Astals Cid wrote:
> qvariant.h has
> 
> struct Private
> {
> ...
>         uint type : 30;
> ...
> }
> 
> ...
> 
> const int type = qMetaTypeId<T>(reinterpret_cast<T *>(0));
> QVariant::Private &d = v.data_ptr();
> if (v.isDetached() && (type <= int(QVariant::Char) || type == d.type))
> 
> In the if it is comparing type (an int) with d.type (an uint) and this is
> generating warning reports, can it be fixed?

Eh, you are not supposed to use private data.

So no, there is no reason we change that.  don't use d.type,  use  
QVariant::userType instead.

_______________________________________________
Qt4-preview-feedback mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt4-preview-feedback

Reply via email to