summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2020-09-25 10:45:42 +0200
committerJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2020-09-25 10:45:42 +0200
commit59346f2fe874f99acfcfd3e52117925ed5bcb862 (patch)
treebed78e86d34d144b2f1dbe533a951a4d947fd7aa
parentae6ab3f47a2cecc5c157c551da94a3fbc84c1492 (diff)
audio/types: Use const reference in SampleRate::operator=()
-rw-r--r--src/audio/types.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/audio/types.h b/src/audio/types.h
index 5528e3c4c9..1200343bfb 100644
--- a/src/audio/types.h
+++ b/src/audio/types.h
@@ -137,7 +137,7 @@ class SampleRate {
(m_value <= kValueMax);
}
- void operator=(const value_t value) {
+ void operator=(const value_t& value) {
m_value = value;
}