summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlbasicscript.cpp
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2010-01-11 06:35:40 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2010-01-11 06:35:40 (GMT)
commitd99eac039984eb09e7fa0a91a07073a6c3769a0d (patch)
tree02c3e1bd49e9efe308051ca35fc6138bda19f6ea /src/declarative/qml/qmlbasicscript.cpp
parent26021de11bf8cfd3f2067466b8be97d42316b8b4 (diff)
downloadQt-d99eac039984eb09e7fa0a91a07073a6c3769a0d.zip
Qt-d99eac039984eb09e7fa0a91a07073a6c3769a0d.tar.gz
Qt-d99eac039984eb09e7fa0a91a07073a6c3769a0d.tar.bz2
unwarn
Diffstat (limited to 'src/declarative/qml/qmlbasicscript.cpp')
-rw-r--r--src/declarative/qml/qmlbasicscript.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/qml/qmlbasicscript.cpp b/src/declarative/qml/qmlbasicscript.cpp
index ebdd348..3d566c7 100644
--- a/src/declarative/qml/qmlbasicscript.cpp
+++ b/src/declarative/qml/qmlbasicscript.cpp
@@ -494,7 +494,7 @@ const QMetaObject *
QmlBasicScriptCompiler::fetch(int type, const QMetaObject *mo, int idx)
{
ScriptInstruction instr;
- (int &)instr.type = type;
+ *((int*)&instr.type) = type;
instr.constant.idx = idx;
QMetaProperty prop = mo->property(idx);
if (prop.isConstant())