From c0b59df7488281598d750fe6dcf69d578bc81ff4 Mon Sep 17 00:00:00 2001 From: artoka Date: Tue, 1 Nov 2011 13:47:09 +0100 Subject: Fix for QVector::toList - code example documentation. Code example in the documentation used QString values in QVector. Task-number: QTBUG-21067 Merge-request: 2698 Reviewed-by: Casper van Donderen --- doc/src/snippets/code/src_corelib_tools_qvector.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/src/snippets/code/src_corelib_tools_qvector.cpp b/doc/src/snippets/code/src_corelib_tools_qvector.cpp index fc46d91..fc1a7f7 100644 --- a/doc/src/snippets/code/src_corelib_tools_qvector.cpp +++ b/doc/src/snippets/code/src_corelib_tools_qvector.cpp @@ -148,10 +148,10 @@ vector.lastIndexOf("X"); // returns -1 //! [14] -QVector vect; +QVector vect; vect << "red" << "green" << "blue" << "black"; -QList list = vect.toList(); +QList list = vect.toList(); // list: ["red", "green", "blue", "black"] //! [14] -- cgit v0.12