path: root/src
diff options
authorPaul Wicking <>2018-07-31 15:52:04 +0200
committerPaul Wicking <>2018-07-31 13:59:29 +0000
commita30138cae86268d71415bc88cfba157977f4a442 (patch)
treeed485c298f6a99e938f88ef06bc0c557e52b0d4f /src
parent0f3c382705b8017f929977b84b573f880fc5a707 (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 <> Reviewed-by: Mitch Curtis <>
Diffstat (limited to 'src')
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: {