summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qdeclarativemetatype.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2015-03-07 17:28:00 -0800
committerThiago Macieira <thiago.macieira@intel.com>2015-03-17 23:44:34 +0000
commitc4b7fbccc110f271746cca58aed55dc2c0dfb7db (patch)
treee34c79352f482cdea5118b18c392f348cc61511c /src/declarative/qml/qdeclarativemetatype.cpp
parente28f113080e46c8b07119ba656564fb286bc6527 (diff)
QtDeclarative: fix const correctness
Add const_cast where we're really violating the correctness. Found by GCC's -Wcast-qual. Change-Id: Iee8cbc07c4434ce9b560ffff13c9619c48672f5a Reviewed-by: Alan Alpert (Personal) <416365416c@gmail.com>
Diffstat (limited to 'src/declarative/qml/qdeclarativemetatype.cpp')
-rw-r--r--src/declarative/qml/qdeclarativemetatype.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/qml/qdeclarativemetatype.cpp b/src/declarative/qml/qdeclarativemetatype.cpp
index 746e8471..f9c2e47b 100644
--- a/src/declarative/qml/qdeclarativemetatype.cpp
+++ b/src/declarative/qml/qdeclarativemetatype.cpp
@@ -780,7 +780,7 @@ QObject *QDeclarativeMetaType::toQObject(const QVariant &v, bool *ok)
if (ok) *ok = true;
- return *(QObject **)v.constData();
+ return *(QObject *const *)v.constData();
}
bool QDeclarativeMetaType::isQObject(int userType)