aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmljavascriptexpression_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2016-12-02 14:23:04 +0100
committerLars Knoll <lars.knoll@qt.io>2016-12-09 14:01:42 +0000
commit1eee98f1c1c59f8c45387684e269629713958bd4 (patch)
tree786e909d5427e07c08d9a7263d005723cf95c737 /src/qml/qml/qqmljavascriptexpression_p.h
parentf1dca03794f8db353655d44e742a2960f1f69070 (diff)
Limit access to m_function to QQmlJavaScriptExpression
Change-Id: I070f73f106440667fce2c7fe33310369a6aa1376 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/qml/qqmljavascriptexpression_p.h')
-rw-r--r--src/qml/qml/qqmljavascriptexpression_p.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qml/qml/qqmljavascriptexpression_p.h b/src/qml/qml/qqmljavascriptexpression_p.h
index 3e00d6be24..887672b925 100644
--- a/src/qml/qml/qqmljavascriptexpression_p.h
+++ b/src/qml/qml/qqmljavascriptexpression_p.h
@@ -158,6 +158,8 @@ protected:
}
}
+ void setFunctionObject(const QV4::FunctionObject *o);
+
private:
friend class QQmlContextData;
friend class QQmlPropertyCapture;
@@ -177,7 +179,6 @@ private:
QQmlJavaScriptExpression *m_nextExpression;
bool m_permanentDependenciesRegistered = false;
-protected:
QV4::PersistentValue m_function;
};