diff options
author | Martin Smith <msmith@trolltech.com> | 2009-08-12 07:29:55 (GMT) |
---|---|---|
committer | Martin Smith <msmith@trolltech.com> | 2009-08-12 07:33:24 (GMT) |
commit | 130fc63e048272235f1f13580d682abed16b3af2 (patch) | |
tree | 1a466c6eb0806f6d85a14a9a467d99506c8a3c1d /doc/src | |
parent | 46e430f70d625d2861a4049bb496cdec1afc555c (diff) | |
download | Qt-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/src')
-rw-r--r-- | doc/src/snippets/code/src_corelib_io_qdatastream.cpp | 2 |
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] |