diff options
author | Paul Wicking <paul.wicking@qt.io> | 2018-07-31 15:52:04 +0200 |
---|---|---|
committer | Paul Wicking <paul.wicking@qt.io> | 2018-07-31 13:59:29 +0000 |
commit | a30138cae86268d71415bc88cfba157977f4a442 (patch) | |
tree | ed485c298f6a99e938f88ef06bc0c557e52b0d4f /src | |
parent | 0f3c382705b8017f929977b84b573f880fc5a707 (diff) |
Doc: Use [] instead of new Array() in snippet
This change removes warning about using new Array() as constructor
with the snippet in Qt Creator.
Task-number: QTBUG-65891
Change-Id: I858601c21d703e4226db4f4c4d9ef52ec6418ed8
Reviewed-by: Nico Vertriest <nico.vertriest@qt.io>
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/qml/doc/src/qmllanguageref/typesystem/topic.qdoc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/doc/src/qmllanguageref/typesystem/topic.qdoc b/src/qml/doc/src/qmllanguageref/typesystem/topic.qdoc index c4f44d7d40..a5f730e8d4 100644 --- a/src/qml/doc/src/qmllanguageref/typesystem/topic.qdoc +++ b/src/qml/doc/src/qmllanguageref/typesystem/topic.qdoc @@ -67,7 +67,7 @@ For example, the standard \c Date and \c Array types are available, as below: import QtQuick 2.0 Item { - property var theArray: new Array() + property var theArray: [] property var theDate: new Date() Component.onCompleted: { |