aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorChris Adams <christopher.adams@nokia.com>2012-02-08 15:45:18 +1000
committerQt by Nokia <qt-info@nokia.com>2012-02-15 07:26:36 +0100
commit3c3b9956c6ba18c424027ec77dfcddbe7bac60b9 (patch)
tree50ede7228f1b93abea0ef1467b5b74a1cffd5d21 /doc
parent03883c22264df65586db0a603569c9d196e06034 (diff)
Fix warnings in sequence wrapper code
Previously, the sequence wrapper had unsigned int / signed int comparisons (due to Qt container classes only allowing signed int indexes (where negative indexes are invalid). This commit ensures that unsigned indexes are bounds checked appropriately, and also fixes a warning due to QString construction from QByteArray. Finally, it updates the documentation for sequences to clarify the indexing semantics. Change-Id: I4c6e133bef6e980a9ccb62ff15a70a5d41537ee3 Reviewed-by: Martin Jones <martin.jones@nokia.com> Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/src/qml/qmltypes.qdoc4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/src/qml/qmltypes.qdoc b/doc/src/qml/qmltypes.qdoc
index 71985c2e1c..964ff98a15 100644
--- a/doc/src/qml/qmltypes.qdoc
+++ b/doc/src/qml/qmltypes.qdoc
@@ -406,7 +406,9 @@ Q_PROPERTY(int size READ size CONSTANT)
value. Similarly, setting the length property of the Array to a value larger
than its current value will result in the Array being padded out to the
specified length with default-constructed elements rather than Undefined
- elements.
+ elements. Finally, the Qt container classes support signed (rather than
+ unsigned) integer indexes; thus, attempting to access any index greater
+ than INT_MAX will fail.
The default-constructed values for each sequence type are as follows:
\table