OSDN Git Service

QmlJS: Compile fix.
authorChristian Kamm <christian.d.kamm@nokia.com>
Wed, 12 Oct 2011 08:55:01 +0000 (10:55 +0200)
committerChristian Kamm <christian.d.kamm@nokia.com>
Wed, 12 Oct 2011 08:55:37 +0000 (10:55 +0200)
Change-Id: Ie7d49f1dd54cd8316d660bc8ae6857dc2effc963
Reviewed-on: http://codereview.qt-project.org/6504
Sanity-Review: Christian Kamm <christian.d.kamm@nokia.com>
Reviewed-by: Christian Kamm <christian.d.kamm@nokia.com>
src/libs/qmljs/qmljsscopebuilder.cpp

index e89deb5..d960fab 100644 (file)
@@ -88,7 +88,7 @@ void ScopeBuilder::push(AST::Node *node)
                 _scopeChain->appendJsScope(astsig->bodyScope());
             }
             // signals defined in C++
-            else if (const QmlObjectValue *qmlObject = dynamic_cast<const QmlObjectValue *>(owner)) {
+            else if (const CppComponentValue *qmlObject = dynamic_cast<const CppComponentValue *>(owner)) {
                 if (const ObjectValue *scope = qmlObject->signalScope(name)) {
                     _scopeChain->appendJsScope(scope);
                 }