Doc: Fix snippet for QUrl::isValid() documentation

qDebug(...) expects a const char *, not a QString.

Change-Id: Ie4489c29440e328a732ed026eae3859eb8855ea5
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
This commit is contained in:
Kai Koehne 2017-06-22 12:26:54 +02:00
parent 07c0e0fdcf
commit 9a69a1b969

View File

@ -62,7 +62,7 @@ QUrl url = QUrl::fromEncoded("http://qt-project.org/List%20of%20holidays.xml");
//! [2] //! [2]
bool checkUrl(const QUrl &url) { bool checkUrl(const QUrl &url) {
if (!url.isValid()) { if (!url.isValid()) {
qDebug(QString("Invalid URL: %1").arg(url.toString())); qDebug("Invalid URL: %s", qUtf8Printable(url.toString()));
return false; return false;
} }