From 3f30f91fb04c997681efa52794a546d0b65afa17 Mon Sep 17 00:00:00 2001 From: Laurent Montel Date: Mon, 6 Jan 2020 13:38:08 +0100 Subject: [PATCH] Port endl to \n Not necessary to flush as QTextStream uses QFile which flush when it's deleted Summary: Port endl to \n Reviewers: dfaure, apol Reviewed By: apol Subscribers: kde-frameworks-devel Tags: #frameworks Differential Revision: https://phabricator.kde.org/D26465 --- src/plasma/private/dataenginemanager.cpp | 26 ++++++++++++------------ 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/plasma/private/dataenginemanager.cpp b/src/plasma/private/dataenginemanager.cpp index 7fabb19de..221440c47 100644 --- a/src/plasma/private/dataenginemanager.cpp +++ b/src/plasma/private/dataenginemanager.cpp @@ -168,38 +168,38 @@ void DataEngineManager::timerEvent(QTimerEvent *) QTextStream out(&f); QHashIterator it(d->engines); - out << "================================== " << QLocale().toString(QDateTime::currentDateTime()) << endl; + out << "================================== " << QLocale().toString(QDateTime::currentDateTime()) << '\n'; while (it.hasNext()) { it.next(); DataEngine *engine = it.value(); - out << "DataEngine: " << it.key() << ' ' << engine << endl; - out << " Claimed # of sources: " << engine->sources().count() << endl; - out << " Actual # of sources: " << engine->containerDict().count() << endl; - out << endl << " Source Details" << endl; + out << "DataEngine: " << it.key() << ' ' << engine << '\n'; + out << " Claimed # of sources: " << engine->sources().count() << '\n'; + out << " Actual # of sources: " << engine->containerDict().count() << '\n'; + out << "\n Source Details" << '\n'; foreach (DataContainer *dc, engine->containerDict()) { - out << " * " << dc->objectName() << endl; - out << " Data count: " << dc->d->data.count() << endl; - out << " Stored: " << dc->isStorageEnabled() << ' ' << endl; + out << " * " << dc->objectName() << '\n'; + out << " Data count: " << dc->d->data.count() << '\n'; + out << " Stored: " << dc->isStorageEnabled() << " \n"; const int directs = dc->receivers(SIGNAL(dataUpdated(QString,Plasma::DataEngine::Data))); if (directs > 0) { - out << " Direction Connections: " << directs << ' ' << endl; + out << " Direction Connections: " << directs << " \n"; } const int relays = dc->d->relays.count(); if (relays > 0) { - out << " Relays: " << dc->d->relays.count() << endl; + out << " Relays: " << dc->d->relays.count() << '\n'; QString times; foreach (SignalRelay *relay, dc->d->relays) { times.append(QLatin1Char(' ') + QString::number(relay->m_interval)); } - out << " Relay Timeouts: " << times << ' ' << endl; + out << " Relay Timeouts: " << times << " \n"; } } - out << endl << "-----" << endl; + out << "\n-----\n"; } - out << endl << endl; + out << "\n\n"; #endif // killTimer(event->timerId()); }