summaryrefslogtreecommitdiffstats
path: root/src/corelib/doc/snippets/code/src_corelib_text_qbytearrayview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/doc/snippets/code/src_corelib_text_qbytearrayview.cpp')
-rw-r--r--src/corelib/doc/snippets/code/src_corelib_text_qbytearrayview.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/corelib/doc/snippets/code/src_corelib_text_qbytearrayview.cpp b/src/corelib/doc/snippets/code/src_corelib_text_qbytearrayview.cpp
index 31a2107c62..d70caa2650 100644
--- a/src/corelib/doc/snippets/code/src_corelib_text_qbytearrayview.cpp
+++ b/src/corelib/doc/snippets/code/src_corelib_text_qbytearrayview.cpp
@@ -58,10 +58,3 @@
void fun(QByteArrayView bv);
void fun(char ch) { fun(QByteArrayView(&ch, 1)); }
//! [1]
-
-void wrapper() {
- const char array[1] = { 0 };
-//! [2]
- auto bv = QByteArrayView(array, std::size(array)); // using C++17 std::size()
-//! [2]
-}