summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorMartin Smith <msmith@trolltech.com>2009-08-12 07:29:55 (GMT)
committerMartin Smith <msmith@trolltech.com>2009-08-12 07:33:24 (GMT)
commit130fc63e048272235f1f13580d682abed16b3af2 (patch)
tree1a466c6eb0806f6d85a14a9a467d99506c8a3c1d /doc
parent46e430f70d625d2861a4049bb496cdec1afc555c (diff)
downloadQt-130fc63e048272235f1f13580d682abed16b3af2.zip
Qt-130fc63e048272235f1f13580d682abed16b3af2.tar.gz
Qt-130fc63e048272235f1f13580d682abed16b3af2.tar.bz2
Surrounded a string const with QString() to get snippet to work.
Task-number: 258967
Diffstat (limited to 'doc')
-rw-r--r--doc/src/snippets/code/src_corelib_io_qdatastream.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/src/snippets/code/src_corelib_io_qdatastream.cpp b/doc/src/snippets/code/src_corelib_io_qdatastream.cpp
index fd6d564..c1f3469 100644
--- a/doc/src/snippets/code/src_corelib_io_qdatastream.cpp
+++ b/doc/src/snippets/code/src_corelib_io_qdatastream.cpp
@@ -5,7 +5,7 @@ void wrapInFunction()
QFile file("file.dat");
file.open(QIODevice::WriteOnly);
QDataStream out(&file); // we will serialize the data into the file
-out << "the answer is"; // serialize a string
+out << QString("the answer is"); // serialize a string
out << (qint32)42; // serialize an integer
//! [0]