summaryrefslogtreecommitdiffstats
path: root/src/corelib/doc/snippets
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/doc/snippets')
-rw-r--r--src/corelib/doc/snippets/qstring/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/doc/snippets/qstring/main.cpp b/src/corelib/doc/snippets/qstring/main.cpp
index d7299e80d5..1626c4a93b 100644
--- a/src/corelib/doc/snippets/qstring/main.cpp
+++ b/src/corelib/doc/snippets/qstring/main.cpp
@@ -765,7 +765,7 @@ void Widget::sprintfFunction()
char buf[BufSize];
::snprintf(buf, BufSize, "%lld", 123456789LL);
- QString str = QString::fromAscii(buf);
+ QString str = QString::fromUtf8(buf);
//! [63]
//! [64]