diff options
author | Jan Holthuis <jan.holthuis@ruhr-uni-bochum.de> | 2020-11-17 20:02:14 +0100 |
---|---|---|
committer | Jan Holthuis <jan.holthuis@ruhr-uni-bochum.de> | 2020-11-19 19:46:54 +0100 |
commit | 4e1bebf0f5e06ecdd99c41771e7b4ee19c0cdcf3 (patch) | |
tree | d0e98cee9eef416282049092ea93b0b2b6eb417d /src/mixer/baseplayer.h | |
parent | 133ea1e3d6547964f014144eee15590ea449c7af (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/mixer/baseplayer.h')
-rw-r--r-- | src/mixer/baseplayer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mixer/baseplayer.h b/src/mixer/baseplayer.h index ec7505c857..5d02d5fcd7 100644 --- a/src/mixer/baseplayer.h +++ b/src/mixer/baseplayer.h @@ -7,7 +7,7 @@ class BasePlayer : public QObject { Q_OBJECT public: - BasePlayer(QObject* pParent, QString group); + BasePlayer(QObject* pParent, const QString& group); ~BasePlayer() override = default; inline const QString& getGroup() { |