CMidiManager: std::move sequencer within SetAudioSysHandle()

Provides the same behavior but without a redundant reference count
increment and then decrement.
This commit is contained in:
Lioncash 2020-02-26 03:16:09 -05:00
parent 08604d770a
commit 2b4888dcb6
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ public:
public:
amuse::ObjToken<amuse::Sequencer> GetAudioSysHandle() const { return x0_sequencer; }
void SetAudioSysHandle(amuse::ObjToken<amuse::Sequencer> sequencer) { x0_sequencer = sequencer; }
void SetAudioSysHandle(amuse::ObjToken<amuse::Sequencer> sequencer) { x0_sequencer = std::move(sequencer); }
// const CSfxHandle& GetManagerHandle() const { return x4_handle; }
// void SetMidiHandle(const CSfxHandle& handle) { x4_handle = handle; }
bool IsAvailable() const { return xa_available; }