summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/corelib/kernel/qvariant.cpp4
-rw-r--r--src/corelib/kernel/qvariant.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/corelib/kernel/qvariant.cpp b/src/corelib/kernel/qvariant.cpp
index e052e3bd34..39a97741e1 100644
--- a/src/corelib/kernel/qvariant.cpp
+++ b/src/corelib/kernel/qvariant.cpp
@@ -2023,11 +2023,11 @@ bool QVariant::convert(QMetaType targetType)
}
/*!
- \fn bool QVariant::convert(const int type, void *ptr) const
+ \fn bool QVariant::convert(int type, void *ptr) const
\internal
Created for qvariant_cast() usage
*/
-bool QVariant::convert(const int type, void *ptr) const
+bool QVariant::convert(int type, void *ptr) const
{
return QMetaType::convert(d.type(), constData(), QMetaType(type), ptr);
}
diff --git a/src/corelib/kernel/qvariant.h b/src/corelib/kernel/qvariant.h
index 7d01911333..47103725f8 100644
--- a/src/corelib/kernel/qvariant.h
+++ b/src/corelib/kernel/qvariant.h
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Copyright (C) 2016 The Qt Company Ltd.
+** Copyright (C) 2020 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the QtCore module of the Qt Toolkit.
@@ -489,7 +489,7 @@ protected:
Private d;
void create(int type, const void *copy);
bool equals(const QVariant &other) const;
- bool convert(const int t, void *ptr) const; // ### Qt6: drop const
+ bool convert(int t, void *ptr) const;
private:
// force compile error, prevent QVariant(bool) to be called