Fix various clazy warnings
This commit is contained in:
@@ -273,7 +273,7 @@ void Queue::Clear() {
|
||||
|
||||
void Queue::Move(const QList<int> &proxy_rows, int pos) {
|
||||
|
||||
layoutAboutToBeChanged();
|
||||
emit layoutAboutToBeChanged();
|
||||
QList<QPersistentModelIndex> moved_items;
|
||||
|
||||
// Take the items out of the list first, keeping track of whether the insertion point changes
|
||||
@@ -308,7 +308,7 @@ void Queue::Move(const QList<int> &proxy_rows, int pos) {
|
||||
}
|
||||
}
|
||||
|
||||
layoutChanged();
|
||||
emit layoutChanged();
|
||||
|
||||
}
|
||||
|
||||
@@ -446,7 +446,7 @@ void Queue::Remove(QList<int> &proxy_rows) {
|
||||
std::stable_sort(proxy_rows.begin(), proxy_rows.end());
|
||||
|
||||
// Reflects immediately changes in the playlist
|
||||
layoutAboutToBeChanged();
|
||||
emit layoutAboutToBeChanged();
|
||||
|
||||
int removed_rows = 0;
|
||||
for (int row : proxy_rows) {
|
||||
@@ -458,6 +458,6 @@ void Queue::Remove(QList<int> &proxy_rows) {
|
||||
removed_rows++;
|
||||
}
|
||||
|
||||
layoutChanged();
|
||||
emit layoutChanged();
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user