diff options
author | Qt Forward Merge Bot <qt_forward_merge_bot@qt-project.org> | 2018-03-31 01:00:13 +0200 |
---|---|---|
committer | Qt Forward Merge Bot <qt_forward_merge_bot@qt-project.org> | 2018-03-31 01:00:13 +0200 |
commit | ffb2c2ac6c3ba40acbe13a39899a72049585b427 (patch) | |
tree | dbee14e6d1641e02ea1fd5fc67ce001ab12776ef /src/corelib/doc/snippets/code/src_corelib_tools_qbytearray.cpp | |
parent | 6d0044f1dcffebc29dccd9d37d90f8abdb941a88 (diff) | |
parent | dbdd5f0ffbce52c8b789ed09f1aa3f1da6c02e23 (diff) |
Merge remote-tracking branch 'origin/5.11' into dev
Change-Id: I33b47095efdfe0ba698c6a88ca41ec911f432208
Diffstat (limited to 'src/corelib/doc/snippets/code/src_corelib_tools_qbytearray.cpp')
-rw-r--r-- | src/corelib/doc/snippets/code/src_corelib_tools_qbytearray.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/corelib/doc/snippets/code/src_corelib_tools_qbytearray.cpp b/src/corelib/doc/snippets/code/src_corelib_tools_qbytearray.cpp index a17e541df3..d163129d54 100644 --- a/src/corelib/doc/snippets/code/src_corelib_tools_qbytearray.cpp +++ b/src/corelib/doc/snippets/code/src_corelib_tools_qbytearray.cpp @@ -395,10 +395,10 @@ QByteArray ba = QByteArray::number(12.3456, 'E', 3); //! [43] static const char mydata[] = { - 0x00, 0x00, 0x03, 0x84, 0x78, 0x9c, 0x3b, 0x76, - 0xec, 0x18, 0xc3, 0x31, 0x0a, 0xf1, 0xcc, 0x99, + '\x00', '\x00', '\x03', '\x84', '\x78', '\x9c', '\x3b', '\x76', + '\xec', '\x18', '\xc3', '\x31', '\x0a', '\xf1', '\xcc', '\x99', ... - 0x6d, 0x5b + '\x6d', '\x5b' }; QByteArray data = QByteArray::fromRawData(mydata, sizeof(mydata)); |