forked from qt-creator/qt-creator
QmlJS: Add more value_casts.
And switch all existing dynamic_casts to value_casts. Change-Id: I93b89358e4802080f40b332074c64f4e91a2bc4c Reviewed-on: http://codereview.qt-project.org/6311 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Thomas Hartmann <Thomas.Hartmann@nokia.com> Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
This commit is contained in:
@@ -76,7 +76,7 @@ static inline const ObjectValue * getPropertyChangesTarget(Node *node, const Sco
|
||||
&& ! scriptBinding->qualifiedId->next) {
|
||||
Evaluate evaluator(&scopeChain);
|
||||
const Value *targetValue = evaluator(scriptBinding->statement);
|
||||
if (const ObjectValue *targetObject = value_cast<const ObjectValue *>(targetValue)) {
|
||||
if (const ObjectValue *targetObject = value_cast<ObjectValue>(targetValue)) {
|
||||
return targetObject;
|
||||
} else {
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user