summaryrefslogtreecommitdiffstats
path: root/src/library/basesqltablemodel.cpp
diff options
context:
space:
mode:
authorJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2020-11-17 20:02:14 +0100
committerJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2020-11-19 19:46:54 +0100
commit4e1bebf0f5e06ecdd99c41771e7b4ee19c0cdcf3 (patch)
treed0e98cee9eef416282049092ea93b0b2b6eb417d /src/library/basesqltablemodel.cpp
parent133ea1e3d6547964f014144eee15590ea449c7af (diff)
Pass non-trivial/large function args by reference
Fixes a bunch of `-Wclazy-function-args-by-ref` warnings. See https://github.com/KDE/clazy/blob/master/docs/checks/README-function-args-by-ref.md for details. Most of these changes are automated, using the clazy fixit by setting the `CLAZY_EXPORT_FIXES` before compilation and then running: $ mkdir /tmp/patch $ find ../src -iname "*.yaml" -exec mv {} /tmp/patch \; $ clang-apply-replacements /tmp/patch
Diffstat (limited to 'src/library/basesqltablemodel.cpp')
-rw-r--r--src/library/basesqltablemodel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/basesqltablemodel.cpp b/src/library/basesqltablemodel.cpp
index cae6671923..bc5e40759a 100644
--- a/src/library/basesqltablemodel.cpp
+++ b/src/library/basesqltablemodel.cpp
@@ -792,7 +792,7 @@ CoverInfo BaseSqlTableModel::getCoverInfo(const QModelIndex& index) const {
return coverInfo;
}
-void BaseSqlTableModel::tracksChanged(QSet<TrackId> trackIds) {
+void BaseSqlTableModel::tracksChanged(const QSet<TrackId>& trackIds) {
if (sDebug) {
qDebug() << this << "trackChanged" << trackIds.size();
}