diff options
author | Paul Wicking <paul.wicking@qt.io> | 2018-07-31 15:52:04 +0200 |
---|---|---|
committer | Paul Wicking <paul.wicking@qt.io> | 2018-08-01 09:23:39 +0000 |
commit | 8763b916cd8c65f3519814b00b9a2202c74801ad (patch) | |
tree | 827c3f5ae5ef60c4d053c809f1d2495181439a73 | |
parent | 5f364acefa3ce8bc770dd4ddb6d962d9f2ecf292 (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>
(cherry picked from commit a30138cae86268d71415bc88cfba157977f4a442)
-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: { |