diff options
author | Albert Astals Cid <[email protected]> | 2019-10-04 14:13:36 +0200 |
---|---|---|
committer | Albert Astals Cid <[email protected]> | 2019-10-07 09:09:49 +0200 |
commit | ce94b847c87e2606c5f189d2ad3715c1d025b9cf (patch) | |
tree | 94ccb94300d87ddafb465ce82c6f60601ce0749b /src/particles/qquickcustomaffector.cpp | |
parent | 2b371a50cbc1f54284fcea3834834ca58fc28fd0 (diff) |
Small performance improvements suggested by clang-tidy
mostly add const &, a few std::move and in particular case, remove const
so the std::move being done over the variable actually has effect
Change-Id: Id611cd31bc012f219d7a17d4626b1c2a5fbddd66
Reviewed-by: Fabian Kosmale <[email protected]>
Reviewed-by: Ulf Hermann <[email protected]>
Diffstat (limited to 'src/particles/qquickcustomaffector.cpp')
-rw-r--r-- | src/particles/qquickcustomaffector.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/particles/qquickcustomaffector.cpp b/src/particles/qquickcustomaffector.cpp index cadd2992b1..5e2133dfaf 100644 --- a/src/particles/qquickcustomaffector.cpp +++ b/src/particles/qquickcustomaffector.cpp @@ -233,7 +233,7 @@ bool QQuickCustomAffector::affectParticle(QQuickParticleData *d, qreal dt) return changed; } -void QQuickCustomAffector::affectProperties(const QList<QQuickParticleData*> particles, qreal dt) +void QQuickCustomAffector::affectProperties(const QList<QQuickParticleData*> &particles, qreal dt) { foreach (QQuickParticleData* d, particles) if ( affectParticle(d, dt) ) |