mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-11-30 20:36:36 -05:00
Replaced deprecated endl by Qt::endl
This commit is contained in:
parent
07ee6581e1
commit
a6cf10fd1a
1 changed files with 6 additions and 1 deletions
|
|
@ -171,7 +171,12 @@ Log::LogMessage::~LogMessage()
|
|||
if (!--stream->ref) {
|
||||
if (stream->out && !stream->buf.isEmpty()) {
|
||||
QTextStream log(stream->out);
|
||||
log << toString() << endl;
|
||||
log << toString() <<
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
|
||||
Qt::endl;
|
||||
#else
|
||||
endl;
|
||||
#endif
|
||||
log.flush();
|
||||
}
|
||||
delete stream;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue