Fix typos

This commit is contained in:
Jonas Kvinge
2022-08-28 02:44:37 +02:00
parent d15d64eb67
commit d97b0478a7
32 changed files with 51 additions and 51 deletions

View File

@@ -46,7 +46,7 @@ SongList ASXParser::Load(QIODevice *device, const QString &playlist_path, const
Q_UNUSED(playlist_path);
// We have to load everything first so we can munge the "XML".
// We have to load everything first, so we can munge the "XML".
QByteArray data = device->readAll();
// Some playlists have unescaped & characters in URLs :(

View File

@@ -137,7 +137,7 @@ SongList CueParser::Load(QIODevice *device, const QString &playlist_path, const
return ret;
}
// if this is a data file, all of it's tracks will be ignored
// if this is a data file, all of its tracks will be ignored
bool valid_file = file_type.compare("BINARY", Qt::CaseInsensitive) != 0 && file_type.compare("MOTOROLA", Qt::CaseInsensitive) != 0;
QString track_type;

View File

@@ -39,7 +39,7 @@ class QIODevice;
class CollectionBackendInterface;
// This parser will try to detect the real encoding of a .cue file
// but there's a great chance it will fail so it's probably best to assume that the parser is UTF compatible only.
// but there's a great chance it will fail, so it's probably best to assume that the parser is UTF compatible only.
class CueParser : public ParserBase {
Q_OBJECT

View File

@@ -53,7 +53,7 @@ class ParserBase : public QObject {
// Loads all songs from playlist found at path 'playlist_path' in directory 'dir'.
// The 'device' argument is an opened and ready to read from representation of this playlist.
// This method might not return all of the songs found in the playlist.
// This method might not return all the songs found in the playlist.
// Any playlist parser may decide to leave out some entries if it finds them incomplete or invalid.
// This means that the final resulting SongList should be considered valid (at least from the parser's point of view).
virtual SongList Load(QIODevice *device, const QString &playlist_path = "", const QDir &dir = QDir(), const bool collection_lookup = true) const = 0;
@@ -68,7 +68,7 @@ class ParserBase : public QObject {
void LoadSong(const QString &filename_or_url, const qint64 beginning, const QDir &dir, Song *song, const bool collection_search) const;
// If the URL is a file:// URL then returns its path, absolute or relative to the directory depending on the path_type option.
// Otherwise returns the URL as is. This function should always be used when saving a playlist.
// Otherwise, returns the URL as is. This function should always be used when saving a playlist.
static QString URLOrFilename(const QUrl &url, const QDir &dir, const PlaylistSettingsPage::PathType path_type);
private: