Fix QNetworkRequest::setRawHeader() for QT_NO_CAST_FROM_BYTEARRAY

Avoid the implicit conversion in the doc snippet.

Change-Id: Iacec6dab371a22c16f537af471f6653d9c5ad43d
Reviewed-by: Andy Shaw <andy.shaw@digia.com>
This commit is contained in:
Richard J. Moore 2014-04-04 15:10:29 +01:00 committed by The Qt Project
parent c33849d0cb
commit 0ed1042092

View File

@ -39,5 +39,5 @@
****************************************************************************/
//! [0]
request.setRawHeader("Last-Modified", "Sun, 06 Nov 1994 08:49:37 GMT");
request.setRawHeader(QByteArray("Last-Modified"), QByteArray("Sun, 06 Nov 1994 08:49:37 GMT"));
//! [0]