From 046512eb3d871bc6ee255f71164b13e995fc63be Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Fri, 29 May 2020 17:47:26 +0200 Subject: [PATCH] Use Qt::endl --- src/playlistparsers/asxiniparser.cpp | 4 ++-- src/playlistparsers/plsparser.cpp | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/playlistparsers/asxiniparser.cpp b/src/playlistparsers/asxiniparser.cpp index b0d3578b2..880d1f64d 100644 --- a/src/playlistparsers/asxiniparser.cpp +++ b/src/playlistparsers/asxiniparser.cpp @@ -65,11 +65,11 @@ SongList AsxIniParser::Load(QIODevice *device, const QString &playlist_path, con void AsxIniParser::Save(const SongList &songs, QIODevice *device, const QDir &dir, Playlist::Path path_type) const { QTextStream s(device); - s << "[Reference]" << endl; + s << "[Reference]" << Qt::endl; int n = 1; for (const Song &song : songs) { - s << "Ref" << n << "=" << URLOrFilename(song.url(), dir, path_type) << endl; + s << "Ref" << n << "=" << URLOrFilename(song.url(), dir, path_type) << Qt::endl; ++n; } diff --git a/src/playlistparsers/plsparser.cpp b/src/playlistparsers/plsparser.cpp index 34fe2f710..2598e9751 100644 --- a/src/playlistparsers/plsparser.cpp +++ b/src/playlistparsers/plsparser.cpp @@ -81,15 +81,15 @@ SongList PLSParser::Load(QIODevice *device, const QString &playlist_path, const void PLSParser::Save(const SongList &songs, QIODevice *device, const QDir &dir, Playlist::Path path_type) const { QTextStream s(device); - s << "[playlist]" << endl; - s << "Version=2" << endl; - s << "NumberOfEntries=" << songs.count() << endl; + s << "[playlist]" << Qt::endl; + s << "Version=2" << Qt::endl; + s << "NumberOfEntries=" << songs.count() << Qt::endl; int n = 1; for (const Song &song : songs) { - s << "File" << n << "=" << URLOrFilename(song.url(), dir, path_type) << endl; - s << "Title" << n << "=" << song.title() << endl; - s << "Length" << n << "=" << song.length_nanosec() / kNsecPerSec << endl; + s << "File" << n << "=" << URLOrFilename(song.url(), dir, path_type) << Qt::endl; + s << "Title" << n << "=" << song.title() << Qt::endl; + s << "Length" << n << "=" << song.length_nanosec() / kNsecPerSec << Qt::endl; ++n; }