diff --git a/src/corelib/kernel/qvariant_p.h b/src/corelib/kernel/qvariant_p.h index 30159f1831..cdae8997a7 100644 --- a/src/corelib/kernel/qvariant_p.h +++ b/src/corelib/kernel/qvariant_p.h @@ -53,9 +53,6 @@ // We mean it. // -// takes a type, returns the internal void* pointer cast -// to a pointer of the input type - #include #include #include @@ -79,6 +76,8 @@ Q_STATIC_ASSERT(QVariantIntegrator::CanUseInternalSpace); #ifdef Q_CC_SUN // Sun CC picks the wrong overload, so introduce awful hack +// takes a type, returns the internal void* pointer cast +// to a pointer of the input type template inline T *v_cast(const QVariant::Private *nd, T * = 0) {