Commit c4951c22 authored by Laurent Montel's avatar Laurent Montel 😁

Make it compiles against qt5.15 (endl other other use Qt:: namespace now)

parent ef7c0315
......@@ -465,8 +465,20 @@ bool Blogger1Private::readPostFromMap(
return false;
}
qCDebug(KBLOG_LOG) << endl << "Keys:" << QStringList(postInfo.keys()).join(QLatin1String(", "));
qCDebug(KBLOG_LOG) << endl;
qCDebug(KBLOG_LOG)
#if (QT_VERSION < QT_VERSION_CHECK(5, 15, 0))
<< endl
#else
<< Qt::endl
#endif
<< "Keys:" << QStringList(postInfo.keys()).join(QLatin1String(", "));
qCDebug(KBLOG_LOG)
#if (QT_VERSION < QT_VERSION_CHECK(5, 15, 0))
<< endl
#else
<< Qt::endl
#endif
;
QDateTime dt = postInfo[QStringLiteral("dateCreated")].toDateTime();
if (dt.isValid() && !dt.isNull()) {
......
......@@ -268,8 +268,20 @@ bool MetaWeblogPrivate::readPostFromMap(BlogPost *post,
return false;
}
qCDebug(KBLOG_LOG) << endl << "Keys:" << QStringList(postInfo.keys()).join(QLatin1String(", "));
qCDebug(KBLOG_LOG) << endl;
qCDebug(KBLOG_LOG)
#if (QT_VERSION < QT_VERSION_CHECK(5, 15, 0))
<< endl
#else
<< Qt::endl
#endif
<< "Keys:" << QStringList(postInfo.keys()).join(QLatin1String(", "));
qCDebug(KBLOG_LOG)
#if (QT_VERSION < QT_VERSION_CHECK(5, 15, 0))
<< endl
#else
<< Qt::endl
#endif
;
QDateTime dt = postInfo[QStringLiteral("dateCreated")].toDateTime();
if (dt.isValid() && !dt.isNull()) {
......
......@@ -460,8 +460,20 @@ bool MovableTypePrivate::readPostFromMap(BlogPost *post, const QMap<QString, QVa
return false;
}
qCDebug(KBLOG_LOG) << endl << "Keys:" << QStringList(postInfo.keys()).join(QLatin1String(", "));
qCDebug(KBLOG_LOG) << endl;
qCDebug(KBLOG_LOG)
#if (QT_VERSION < QT_VERSION_CHECK(5, 15, 0))
<< endl
#else
<< Qt::endl
#endif
<< "Keys:" << QStringList(postInfo.keys()).join(QLatin1String(", "));
qCDebug(KBLOG_LOG)
#if (QT_VERSION < QT_VERSION_CHECK(5, 15, 0))
<< endl
#else
<< Qt::endl
#endif
;
QDateTime dt = postInfo[QStringLiteral("dateCreated")].toDateTime();
if (dt.isValid() && !dt.isNull()) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment