EBUR128State: Add missing const reference
This commit is contained in:
parent
78becae5e9
commit
fb2300e2fa
|
@ -179,7 +179,7 @@ class EBUR128State {
|
||||||
EBUR128State &operator=(const EBUR128State&) = delete;
|
EBUR128State &operator=(const EBUR128State&) = delete;
|
||||||
EBUR128State &operator=(EBUR128State&&) = delete;
|
EBUR128State &operator=(EBUR128State&&) = delete;
|
||||||
|
|
||||||
explicit EBUR128State(FrameFormat _dsc);
|
explicit EBUR128State(const FrameFormat &_dsc);
|
||||||
const FrameFormat dsc;
|
const FrameFormat dsc;
|
||||||
|
|
||||||
void AddFrames(const char *data, size_t size);
|
void AddFrames(const char *data, size_t size);
|
||||||
|
@ -246,7 +246,7 @@ bool operator!=(const FrameFormat &lhs, const FrameFormat &rhs) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
EBUR128State::EBUR128State(FrameFormat _dsc) : dsc(_dsc) {
|
EBUR128State::EBUR128State(const FrameFormat &_dsc) : dsc(_dsc) {
|
||||||
|
|
||||||
st.reset(ebur128_init(dsc.channels, dsc.samplerate, EBUR128_MODE_I | EBUR128_MODE_LRA));
|
st.reset(ebur128_init(dsc.channels, dsc.samplerate, EBUR128_MODE_I | EBUR128_MODE_LRA));
|
||||||
Q_ASSERT(st);
|
Q_ASSERT(st);
|
||||||
|
|
Loading…
Reference in New Issue