Avoid a copy
This commit is contained in:
parent
5777e65578
commit
6a6936f205
1 changed files with 2 additions and 1 deletions
|
|
@ -13,8 +13,9 @@
|
|||
namespace sfz {
|
||||
|
||||
Layer::Layer(int regionNumber, absl::string_view defaultPath, const MidiState& midiState)
|
||||
: Layer(Region(regionNumber, defaultPath), midiState)
|
||||
: midiState_(midiState), region_(regionNumber, defaultPath)
|
||||
{
|
||||
initializeActivations();
|
||||
}
|
||||
|
||||
Layer::Layer(const Region& region, const MidiState& midiState)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue