Formatting

This commit is contained in:
Jonas Kvinge
2021-08-23 21:21:08 +02:00
parent ed7794f396
commit ea2bfbda44
111 changed files with 833 additions and 425 deletions

View File

@@ -899,7 +899,7 @@ void Song::InitFromQuery(const SqlRow &q, bool reliable_metadata, int col) {
int x = col;
d->id_ = toint(col);
for (int i = 0 ; i < Song::kColumns.size(); i++) {
for (int i = 0; i < Song::kColumns.size(); i++) {
x++;
if (x >= q.columns_.size()) {
@@ -1609,8 +1609,9 @@ bool Song::IsOnSameAlbum(const Song &other) const {
if (is_compilation() != other.is_compilation()) return false;
if (has_cue() && other.has_cue() && cue_path() == other.cue_path())
if (has_cue() && other.has_cue() && cue_path() == other.cue_path()) {
return true;
}
if (is_compilation() && album() == other.album()) return true;