Fix documentation code snippet of QString::arg(QStringView)
Fix qdoc warning: src/corelib/tools/qstring.cpp:7809: warning: Command '\snippet (//! [11-qstringview])' failed at end of file 'qstring/main.cpp' Change-Id: Ie5a57bd94ba64ceab5179593f1df35be29c9985a Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
This commit is contained in:
parent
5d48143ff8
commit
c23c4a921d
@ -263,14 +263,14 @@ void Widget::argFunction()
|
||||
//! [11]
|
||||
|
||||
{
|
||||
//! [11]
|
||||
//! [11-qstringview]
|
||||
int i; // current file's number
|
||||
int total; // number of files to process
|
||||
QStringView fileName; // current file's name
|
||||
|
||||
QString status = QString("Processing file %1 of %2: %3")
|
||||
.arg(i).arg(total).arg(fileName);
|
||||
//! [11]
|
||||
//! [11-qstringview]
|
||||
}
|
||||
|
||||
//! [12] //! [13]
|
||||
|
Loading…
Reference in New Issue
Block a user