Fix compilation of Qt itself with QT_NO_DEBUG_STREAM
Change-Id: I07087dff0f109347ea80434f17eeb7cc1c13114c Reviewed-by: Jonas Gastal <jgastal@profusion.mobi> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: João Abecasis <joao.abecasis@nokia.com>
This commit is contained in:
parent
0fda46932d
commit
eb8fce6e56
@ -247,8 +247,7 @@ QOpenGLEngineSharedShaders::QOpenGLEngineSharedShaders(QOpenGLContext* context)
|
|||||||
if (!inCache)
|
if (!inCache)
|
||||||
simpleShaderCache.store(simpleShaderProg, context);
|
simpleShaderCache.store(simpleShaderProg, context);
|
||||||
} else {
|
} else {
|
||||||
qCritical() << "Errors linking simple shader:"
|
qCritical("Errors linking simple shader: %s", qPrintable(simpleShaderProg->log()));
|
||||||
<< simpleShaderProg->log();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Compile the blit shader:
|
// Compile the blit shader:
|
||||||
@ -289,8 +288,7 @@ QOpenGLEngineSharedShaders::QOpenGLEngineSharedShaders(QOpenGLContext* context)
|
|||||||
if (!inCache)
|
if (!inCache)
|
||||||
blitShaderCache.store(blitShaderProg, context);
|
blitShaderCache.store(blitShaderProg, context);
|
||||||
} else {
|
} else {
|
||||||
qCritical() << "Errors linking blit shader:"
|
qCritical("Errors linking blit shader: %s", qPrintable(blitShaderProg->log()));
|
||||||
<< blitShaderProg->log();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef QT_GL_SHARED_SHADER_DEBUG
|
#ifdef QT_GL_SHARED_SHADER_DEBUG
|
||||||
|
@ -364,7 +364,7 @@ void QHttpThreadDelegate::readyReadSlot()
|
|||||||
void QHttpThreadDelegate::finishedSlot()
|
void QHttpThreadDelegate::finishedSlot()
|
||||||
{
|
{
|
||||||
if (!httpReply) {
|
if (!httpReply) {
|
||||||
qWarning() << "QHttpThreadDelegate::finishedSlot: HTTP reply had already been deleted, internal problem. Please report.";
|
qWarning("QHttpThreadDelegate::finishedSlot: HTTP reply had already been deleted, internal problem. Please report.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#ifdef QHTTPTHREADDELEGATE_DEBUG
|
#ifdef QHTTPTHREADDELEGATE_DEBUG
|
||||||
@ -420,7 +420,7 @@ void QHttpThreadDelegate::synchronousFinishedSlot()
|
|||||||
void QHttpThreadDelegate::finishedWithErrorSlot(QNetworkReply::NetworkError errorCode, const QString &detail)
|
void QHttpThreadDelegate::finishedWithErrorSlot(QNetworkReply::NetworkError errorCode, const QString &detail)
|
||||||
{
|
{
|
||||||
if (!httpReply) {
|
if (!httpReply) {
|
||||||
qWarning() << "QHttpThreadDelegate::finishedWithErrorSlot: HTTP reply had already been deleted, internal problem. Please report.";
|
qWarning("QHttpThreadDelegate::finishedWithErrorSlot: HTTP reply had already been deleted, internal problem. Please report.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#ifdef QHTTPTHREADDELEGATE_DEBUG
|
#ifdef QHTTPTHREADDELEGATE_DEBUG
|
||||||
|
@ -1846,7 +1846,7 @@ void QNetworkReplyHttpImplPrivate::error(QNetworkReplyImpl::NetworkError code, c
|
|||||||
Q_Q(QNetworkReplyHttpImpl);
|
Q_Q(QNetworkReplyHttpImpl);
|
||||||
// Can't set and emit multiple errors.
|
// Can't set and emit multiple errors.
|
||||||
if (errorCode != QNetworkReply::NoError) {
|
if (errorCode != QNetworkReply::NoError) {
|
||||||
qWarning() << "QNetworkReplyImplPrivate::error: Internal problem, this method must only be called once.";
|
qWarning("QNetworkReplyImplPrivate::error: Internal problem, this method must only be called once.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1959,7 +1959,7 @@ void QNetworkReplyHttpImplPrivate::setCachingEnabled(bool enable)
|
|||||||
|
|
||||||
if (enable) {
|
if (enable) {
|
||||||
if (bytesDownloaded) {
|
if (bytesDownloaded) {
|
||||||
qDebug() << "x" << bytesDownloaded;
|
qDebug("setCachingEnabled: %d bytesDownloaded", bytesDownloaded);
|
||||||
// refuse to enable in this case
|
// refuse to enable in this case
|
||||||
qCritical("QNetworkReplyImpl: backend error: caching was enabled after some bytes had been written");
|
qCritical("QNetworkReplyImpl: backend error: caching was enabled after some bytes had been written");
|
||||||
return;
|
return;
|
||||||
|
@ -780,7 +780,7 @@ void QNetworkReplyImplPrivate::error(QNetworkReplyImpl::NetworkError code, const
|
|||||||
Q_Q(QNetworkReplyImpl);
|
Q_Q(QNetworkReplyImpl);
|
||||||
// Can't set and emit multiple errors.
|
// Can't set and emit multiple errors.
|
||||||
if (errorCode != QNetworkReply::NoError) {
|
if (errorCode != QNetworkReply::NoError) {
|
||||||
qWarning() << "QNetworkReplyImplPrivate::error: Internal problem, this method must only be called once.";
|
qWarning( "QNetworkReplyImplPrivate::error: Internal problem, this method must only be called once.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -246,8 +246,7 @@ QGLEngineSharedShaders::QGLEngineSharedShaders(const QGLContext* context)
|
|||||||
if (!inCache)
|
if (!inCache)
|
||||||
simpleShaderCache.store(simpleShaderProg, context);
|
simpleShaderCache.store(simpleShaderProg, context);
|
||||||
} else {
|
} else {
|
||||||
qCritical() << "Errors linking simple shader:"
|
qCritical("Errors linking simple shader: %s", qPrintable(simpleShaderProg->log()));
|
||||||
<< simpleShaderProg->log();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Compile the blit shader:
|
// Compile the blit shader:
|
||||||
@ -288,8 +287,7 @@ QGLEngineSharedShaders::QGLEngineSharedShaders(const QGLContext* context)
|
|||||||
if (!inCache)
|
if (!inCache)
|
||||||
blitShaderCache.store(blitShaderProg, context);
|
blitShaderCache.store(blitShaderProg, context);
|
||||||
} else {
|
} else {
|
||||||
qCritical() << "Errors linking blit shader:"
|
qCritical("Errors linking blit shader: %s", qPrintable(blitShaderProg->log()));
|
||||||
<< blitShaderProg->log();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef QT_GL_SHARED_SHADER_DEBUG
|
#ifdef QT_GL_SHARED_SHADER_DEBUG
|
||||||
|
@ -84,7 +84,7 @@ inline static QString fromSQLTCHAR(const QVarLengthArray<SQLTCHAR>& input, int s
|
|||||||
result=QString::fromUcs4((const uint *)input.constData(), realsize);
|
result=QString::fromUcs4((const uint *)input.constData(), realsize);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
qCritical() << "sizeof(SQLTCHAR) is " << sizeof(SQLTCHAR) << "Don't know how to handle this";
|
qCritical("sizeof(SQLTCHAR) is %d. Don't know how to handle this.", sizeof(SQLTCHAR));
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
@ -104,7 +104,7 @@ inline static QVarLengthArray<SQLTCHAR> toSQLTCHAR(const QString &input)
|
|||||||
memcpy(result.data(), input.toUcs4().data(), input.size() * 4);
|
memcpy(result.data(), input.toUcs4().data(), input.size() * 4);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
qCritical() << "sizeof(SQLTCHAR) is " << sizeof(SQLTCHAR) << "Don't know how to handle this";
|
qCritical("sizeof(SQLTCHAR) is %d. Don't know how to handle this.", sizeof(SQLTCHAR));
|
||||||
}
|
}
|
||||||
result.append(0); // make sure it's null terminated, doesn't matter if it already is, it does if it isn't.
|
result.append(0); // make sure it's null terminated, doesn't matter if it already is, it does if it isn't.
|
||||||
return result;
|
return result;
|
||||||
|
@ -127,6 +127,7 @@ static bool convert(const QVariant::Private *d, QVariant::Type type, void *resul
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !defined(QT_NO_DEBUG_STREAM) && !defined(Q_BROKEN_DEBUG_STREAM)
|
||||||
static void streamDebug(QDebug dbg, const QVariant &v)
|
static void streamDebug(QDebug dbg, const QVariant &v)
|
||||||
{
|
{
|
||||||
QVariant::Private *d = const_cast<QVariant::Private *>(&v.data_ptr());
|
QVariant::Private *d = const_cast<QVariant::Private *>(&v.data_ptr());
|
||||||
@ -143,6 +144,7 @@ static void streamDebug(QDebug dbg, const QVariant &v)
|
|||||||
dbg.nospace() << "QVariant::Type(" << d->type << ")";
|
dbg.nospace() << "QVariant::Type(" << d->type << ")";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static const QVariant::Handler widgets_handler = {
|
static const QVariant::Handler widgets_handler = {
|
||||||
construct,
|
construct,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user