mirror of https://github.com/AxioDL/amuse.git
Studio: std::move studio instance in addStudioSend()
Avoids an unnecessary atomic reference count increment and decrement
This commit is contained in:
parent
04fbc328e9
commit
b92674e127
|
@ -20,7 +20,7 @@ Studio::Studio(Engine& engine, bool mainOut) : m_engine(engine), m_master(engine
|
||||||
}
|
}
|
||||||
|
|
||||||
void Studio::addStudioSend(ObjToken<Studio> studio, float dry, float auxA, float auxB) {
|
void Studio::addStudioSend(ObjToken<Studio> studio, float dry, float auxA, float auxB) {
|
||||||
m_studiosOut.emplace_back(studio, dry, auxA, auxB);
|
m_studiosOut.emplace_back(std::move(studio), dry, auxA, auxB);
|
||||||
|
|
||||||
/* Cyclic check */
|
/* Cyclic check */
|
||||||
assert(!_cyclicCheck(this));
|
assert(!_cyclicCheck(this));
|
||||||
|
|
Loading…
Reference in New Issue