diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2010-01-11 06:35:40 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2010-01-11 06:35:40 (GMT) |
commit | d99eac039984eb09e7fa0a91a07073a6c3769a0d (patch) | |
tree | 02c3e1bd49e9efe308051ca35fc6138bda19f6ea /src/declarative | |
parent | 26021de11bf8cfd3f2067466b8be97d42316b8b4 (diff) | |
download | Qt-d99eac039984eb09e7fa0a91a07073a6c3769a0d.zip Qt-d99eac039984eb09e7fa0a91a07073a6c3769a0d.tar.gz Qt-d99eac039984eb09e7fa0a91a07073a6c3769a0d.tar.bz2 |
unwarn
Diffstat (limited to 'src/declarative')
-rw-r--r-- | src/declarative/graphicsitems/qmlgraphicsvisualitemmodel.cpp | 4 | ||||
-rw-r--r-- | src/declarative/qml/qmlbasicscript.cpp | 2 | ||||
-rw-r--r-- | src/declarative/qml/qmlcompiler.cpp | 2 | ||||
-rw-r--r-- | src/declarative/qml/qmlcomponent.cpp | 2 | ||||
-rw-r--r-- | src/declarative/qml/qmlengine.cpp | 2 | ||||
-rw-r--r-- | src/declarative/qml/qmlenginedebug.cpp | 4 |
6 files changed, 8 insertions, 8 deletions
diff --git a/src/declarative/graphicsitems/qmlgraphicsvisualitemmodel.cpp b/src/declarative/graphicsitems/qmlgraphicsvisualitemmodel.cpp index 5b80ee0..70e3a43 100644 --- a/src/declarative/graphicsitems/qmlgraphicsvisualitemmodel.cpp +++ b/src/declarative/graphicsitems/qmlgraphicsvisualitemmodel.cpp @@ -965,9 +965,9 @@ QVariant QmlGraphicsVisualDataModel::evaluate(int index, const QString &expressi return value; } -int QmlGraphicsVisualDataModel::indexOf(QmlGraphicsItem *item, QObject *objectContext) const +int QmlGraphicsVisualDataModel::indexOf(QmlGraphicsItem *item, QObject *) const { - QVariant val = QmlEngine::contextForObject(item)->contextProperty("index"); + QVariant val = QmlEngine::contextForObject(item)->contextProperty(QLatin1String("index")); return val.toInt(); return -1; } 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()) diff --git a/src/declarative/qml/qmlcompiler.cpp b/src/declarative/qml/qmlcompiler.cpp index 3b2009a..f890c5a 100644 --- a/src/declarative/qml/qmlcompiler.cpp +++ b/src/declarative/qml/qmlcompiler.cpp @@ -2365,7 +2365,7 @@ bool QmlCompiler::buildDynamicMeta(QmlParser::Object *obj, DynamicMetaMode mode) sig.append(','); funcScript.append(QLatin1Char(',')); } - funcScript.append(s.parameterNames.at(jj)); + funcScript.append(QLatin1String(s.parameterNames.at(jj))); sig.append("QVariant"); } sig.append(')'); diff --git a/src/declarative/qml/qmlcomponent.cpp b/src/declarative/qml/qmlcomponent.cpp index 2d53b0b..a1292f5 100644 --- a/src/declarative/qml/qmlcomponent.cpp +++ b/src/declarative/qml/qmlcomponent.cpp @@ -676,7 +676,7 @@ QObject * QmlComponentPrivate::begin(QmlContext *ctxt, QmlEnginePrivate *engineP return rv; } -void QmlComponentPrivate::beginDeferred(QmlContext *ctxt, QmlEnginePrivate *enginePriv, +void QmlComponentPrivate::beginDeferred(QmlContext *, QmlEnginePrivate *enginePriv, QObject *object, ConstructionState *state) { bool isRoot = !enginePriv->inBeginCreate; diff --git a/src/declarative/qml/qmlengine.cpp b/src/declarative/qml/qmlengine.cpp index 2d86e09..aca3f76 100644 --- a/src/declarative/qml/qmlengine.cpp +++ b/src/declarative/qml/qmlengine.cpp @@ -694,7 +694,7 @@ QScriptValue QmlEnginePrivate::createQmlObject(QScriptContext *ctxt, QScriptEngi if(ctxt->argumentCount() > 2) url = QUrl(ctxt->argument(2).toString()); else - url = QUrl("inline"); + url = QUrl(QLatin1String("inline")); if (url.isValid() && url.isRelative()) url = context->resolvedUrl(url); diff --git a/src/declarative/qml/qmlenginedebug.cpp b/src/declarative/qml/qmlenginedebug.cpp index 46490fb..2abd6e6 100644 --- a/src/declarative/qml/qmlenginedebug.cpp +++ b/src/declarative/qml/qmlenginedebug.cpp @@ -115,7 +115,7 @@ QmlEngineDebugServer::propertyData(QObject *obj, int propIdx) QVariant value = prop.read(obj); rv.value = valueContents(value); - if (prop.userType() < QVariant::UserType) { + if (QVariant::Type(prop.userType()) < QVariant::UserType) { rv.type = QmlObjectProperty::Basic; } else if (QmlMetaType::isObject(prop.userType())) { rv.type = QmlObjectProperty::Object; @@ -130,7 +130,7 @@ QmlEngineDebugServer::propertyData(QObject *obj, int propIdx) QVariant QmlEngineDebugServer::valueContents(const QVariant &value) const { int userType = value.userType(); - if (userType < QVariant::UserType) + if (QVariant::Type(userType) < QVariant::UserType) return value; |