static_cast<:: apparently confuses older GCC.
This commit is contained in:
parent
2d1b425493
commit
f7eea6c505
@ -581,7 +581,7 @@ void Song::ToProtobuf(pb::tagreader::SongMetadata* pb) const {
|
||||
pb->set_filesize(d->filesize_);
|
||||
pb->set_suspicious_tags(d->suspicious_tags_);
|
||||
pb->set_art_automatic(DataCommaSizeFromQString(d->art_automatic_));
|
||||
pb->set_type(static_cast<::pb::tagreader::SongMetadata_Type>(d->filetype_));
|
||||
pb->set_type(static_cast<pb::tagreader::SongMetadata_Type>(d->filetype_));
|
||||
}
|
||||
|
||||
void Song::InitFromQuery(const SqlRow& q, bool reliable_metadata, int col) {
|
||||
@ -936,8 +936,9 @@ void Song::BindToQuery(QSqlQuery* query) const {
|
||||
|
||||
if (Application::kIsPortable &&
|
||||
Utilities::UrlOnSameDriveAsClementine(d->url_)) {
|
||||
query->bindValue(":filename", Utilities::GetRelativePathToClementineBin(
|
||||
d->url_).toEncoded());
|
||||
query->bindValue(
|
||||
":filename",
|
||||
Utilities::GetRelativePathToClementineBin(d->url_).toEncoded());
|
||||
} else {
|
||||
query->bindValue(":filename", d->url_.toEncoded());
|
||||
}
|
||||
@ -1132,7 +1133,8 @@ bool Song::IsOnSameAlbum(const Song& other) const {
|
||||
}
|
||||
|
||||
QString Song::AlbumKey() const {
|
||||
return QString("%1|%2|%3").arg(is_compilation() ? "_compilation" : effective_albumartist(),
|
||||
return QString("%1|%2|%3")
|
||||
.arg(is_compilation() ? "_compilation" : effective_albumartist(),
|
||||
has_cue() ? cue_path() : "", effective_album());
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user