forked from qt-creator/qt-creator
QmlJS: Allow lookups on const Contexts. Pass const Contexts where ok.
In preparation for caching Contexts. Reviewed-by: Erik Verbruggen
This commit is contained in:
@@ -84,7 +84,7 @@ Interpreter::ObjectValue *Bind::findQmlObject(AST::Node *node) const
|
||||
}
|
||||
|
||||
bool Bind::usesQmlPrototype(ObjectValue *prototype,
|
||||
Context *context) const
|
||||
const Context *context) const
|
||||
{
|
||||
foreach (ObjectValue *object, _qmlObjects.values()) {
|
||||
const ObjectValue *resolvedPrototype = object->prototype(context);
|
||||
|
Reference in New Issue
Block a user