diff options
author | Christian Glöckner <cgloeckner@freenet.de> | 2016-05-09 11:09:06 +0200 |
---|---|---|
committer | Christian Glöckner <cgloeckner@freenet.de> | 2016-05-26 17:52:21 +0200 |
commit | 52b37cac974eb150d49eee1f0b5ba3654f6d7716 (patch) | |
tree | 353daa0524c2f918caeac17b704b016e651af6e2 /src/drumkitloader.cc | |
parent | 355f9e4e2ebace6cce52a277cbaf1d1bfc904d61 (diff) |
Instrument Vector using UniquePtr
Diffstat (limited to 'src/drumkitloader.cc')
-rw-r--r-- | src/drumkitloader.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/drumkitloader.cc b/src/drumkitloader.cc index 94daf79..f2ef61a 100644 --- a/src/drumkitloader.cc +++ b/src/drumkitloader.cc @@ -133,15 +133,15 @@ void DrumKitLoader::loadKit(DrumKit *kit) // Count total number of files that need loading: settings.number_of_files.store(0); - for(auto instr : kit->instruments) + for(auto& instr_ptr: kit->instruments) { - settings.number_of_files.fetch_add(instr->audiofiles.size()); + settings.number_of_files.fetch_add(instr_ptr->audiofiles.size()); } // Now actually queue them for loading: - for(auto instr : kit->instruments) + for(auto& instr_ptr: kit->instruments) { - for(auto audiofile : instr->audiofiles) + for(auto& audiofile: instr_ptr->audiofiles) { load_queue.push_back(audiofile); } |