add missing Qt:: namespace when using Qt::endl

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
This commit is contained in:
Matthieu Gallien 2022-05-20 19:54:41 +02:00 committed by Matthieu Gallien
parent 80b25d36fa
commit b712108229
2 changed files with 12 additions and 12 deletions

View File

@ -904,16 +904,16 @@ void Application::showHelp()
QTextStream stream(&helpText);
stream << _theme->appName()
<< QLatin1String(" version ")
<< _theme->version() << endl;
<< _theme->version() << Qt::endl;
stream << QLatin1String("File synchronisation desktop utility.") << endl
<< endl
stream << QLatin1String("File synchronisation desktop utility.") << Qt::endl
<< Qt::endl
<< QLatin1String(optionsC);
if (_theme->appName() == QLatin1String("ownCloud"))
stream << endl
<< "For more information, see http://www.owncloud.org" << endl
<< endl;
stream << Qt::endl
<< "For more information, see http://www.owncloud.org" << Qt::endl
<< Qt::endl;
displayHelpText(helpText);
}

View File

@ -80,12 +80,12 @@ void SyncRunFileLog::start(const QString &folderPath)
if (!exists) {
_out << folderPath << endl;
_out << folderPath << Qt::endl;
// We are creating a new file, add the note.
_out << "# timestamp | duration | file | instruction | dir | modtime | etag | "
"size | fileId | status | errorString | http result code | "
"other size | other modtime | X-Request-ID"
<< endl;
<< Qt::endl;
FileSystem::setFileHidden(filename, true);
}
@ -93,7 +93,7 @@ void SyncRunFileLog::start(const QString &folderPath)
_totalDuration.start();
_lapDuration.start();
_out << "#=#=#=# Syncrun started " << dateTimeStr(QDateTime::currentDateTimeUtc()) << endl;
_out << "#=#=#=# Syncrun started " << dateTimeStr(QDateTime::currentDateTimeUtc()) << Qt::endl;
}
void SyncRunFileLog::logItem(const SyncFileItem &item)
{
@ -132,21 +132,21 @@ void SyncRunFileLog::logItem(const SyncFileItem &item)
_out << QString::number(item._previousModtime) << L;
_out << item._requestId << L;
_out << endl;
_out << Qt::endl;
}
void SyncRunFileLog::logLap(const QString &name)
{
_out << "#=#=#=#=# " << name << " " << dateTimeStr(QDateTime::currentDateTimeUtc())
<< " (last step: " << _lapDuration.restart() << " msec"
<< ", total: " << _totalDuration.elapsed() << " msec)" << endl;
<< ", total: " << _totalDuration.elapsed() << " msec)" << Qt::endl;
}
void SyncRunFileLog::finish()
{
_out << "#=#=#=# Syncrun finished " << dateTimeStr(QDateTime::currentDateTimeUtc())
<< " (last step: " << _lapDuration.elapsed() << " msec"
<< ", total: " << _totalDuration.elapsed() << " msec)" << endl;
<< ", total: " << _totalDuration.elapsed() << " msec)" << Qt::endl;
_file->close();
}
}