QNativeSocketEngine: use stream-style qDebug to fix a warning about FD types.

FD types differ depending on the platform, so using the stream form is the
easiest way to make this work.

Change-Id: I00b1a303f3d865fe5e89ba97bd438c51c6cd8f09
Reviewed-by: Richard J. Moore <rich@kde.org>
This commit is contained in:
Robin Burchell 2014-08-03 22:51:18 +02:00 committed by Robin Burchell
parent 7ff4621100
commit e9782fee8f

View File

@ -430,8 +430,8 @@ bool QNativeSocketEngine::initialize(qintptr socketDescriptor, QAbstractSocket::
// determine socket type and protocol // determine socket type and protocol
if (!d->fetchConnectionParameters()) { if (!d->fetchConnectionParameters()) {
#if defined (QNATIVESOCKETENGINE_DEBUG) #if defined (QNATIVESOCKETENGINE_DEBUG)
qDebug("QNativeSocketEngine::initialize(socketDescriptor == %i) failed: %s", qDebug() << "QNativeSocketEngine::initialize(socketDescriptor) failed:"
socketDescriptor, d->socketErrorString.toLatin1().constData()); << socketDescriptor << d->socketErrorString;
#endif #endif
d->socketDescriptor = -1; d->socketDescriptor = -1;
return false; return false;