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:
@@ -108,7 +108,7 @@ QmlOutlineItem &QmlOutlineItem::copyValues(const QmlOutlineItem &other)
|
||||
return *this;
|
||||
}
|
||||
|
||||
QString QmlOutlineItem::prettyPrint(const QmlJS::Interpreter::Value *value, QmlJS::Interpreter::Context *context) const
|
||||
QString QmlOutlineItem::prettyPrint(const QmlJS::Interpreter::Value *value, const QmlJS::Interpreter::Context *context) const
|
||||
{
|
||||
if (! value)
|
||||
return QString();
|
||||
|
||||
Reference in New Issue
Block a user