summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qvariant_p.h
diff options
context:
space:
mode:
authorJędrzej Nowacki <jedrzej.nowacki@nokia.com>2012-02-06 15:08:26 +0100
committerQt by Nokia <qt-info@nokia.com>2012-02-08 09:53:23 +0100
commit09900d3dc5158bca6ec4d40c1a770d32db413894 (patch)
tree8431382b162d2f712396e28018310928c5529ebb /src/corelib/kernel/qvariant_p.h
parent0da03ac969e382a604f8c178820f1e8b9053d97f (diff)
Fix position of a comment.
The comment was wrongly placed. It describes v_cast function. Change-Id: I2390e4bf1fc19136bbbecbae4be83d5320ca244f Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
Diffstat (limited to 'src/corelib/kernel/qvariant_p.h')
-rw-r--r--src/corelib/kernel/qvariant_p.h5
1 files changed, 2 insertions, 3 deletions
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 <QtCore/qglobal.h>
#include <QtCore/qvariant.h>
#include <QtCore/private/qmetatype_p.h>
@@ -79,6 +76,8 @@ Q_STATIC_ASSERT(QVariantIntegrator<qulonglong>::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 <typename T>
inline T *v_cast(const QVariant::Private *nd, T * = 0)
{