diff options
author | Albert Astals Cid <albert.astals@canonical.com> | 2017-01-31 11:06:35 +0100 |
---|---|---|
committer | Albert Astals Cid <albert.astals@canonical.com> | 2017-04-05 12:13:15 +0000 |
commit | b78508f55f6ada95a51ca7d8051382178c27abce (patch) | |
tree | d146d0bb6bf67830f7c7787d0d7ff4da98389a1c /src/qml | |
parent | 315f3689866adea143b064ade6a77d6e21bcc2e3 (diff) |
Add a TODO to make functions const
As far as I can see they don't modify the QJSValue or its private at all
Change-Id: I555e9dc2fa28aa90929e6f864158bbbc98dd669c
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml')
-rw-r--r-- | src/qml/jsapi/qjsvalue.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qml/jsapi/qjsvalue.h b/src/qml/jsapi/qjsvalue.h index ab20a2607d..56bd64eec1 100644 --- a/src/qml/jsapi/qjsvalue.h +++ b/src/qml/jsapi/qjsvalue.h @@ -133,9 +133,9 @@ public: bool deleteProperty(const QString &name); bool isCallable() const; - QJSValue call(const QJSValueList &args = QJSValueList()); - QJSValue callWithInstance(const QJSValue &instance, const QJSValueList &args = QJSValueList()); - QJSValue callAsConstructor(const QJSValueList &args = QJSValueList()); + QJSValue call(const QJSValueList &args = QJSValueList()); // ### Qt6: Make const + QJSValue callWithInstance(const QJSValue &instance, const QJSValueList &args = QJSValueList()); // ### Qt6: Make const + QJSValue callAsConstructor(const QJSValueList &args = QJSValueList()); // ### Qt6: Make const #ifdef QT_DEPRECATED QT_DEPRECATED QJSEngine *engine() const; |