Use std::copy instead of for loop in Session::import_audiofile
git-svn-id: svn://localhost/ardour2/trunk@2669 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
@@ -230,10 +230,8 @@ Session::import_audiofile (import_status& status)
|
||||
if (status.cancel) {
|
||||
goto out;
|
||||
}
|
||||
|
||||
for (uint n = 0; n < source->channels(); ++n) {
|
||||
status.sources.push_back (newfiles[n]);
|
||||
}
|
||||
|
||||
std::copy (newfiles.begin(), newfiles.end(), std::back_inserter(status.sources));
|
||||
|
||||
if (status.cancel) {
|
||||
goto out;
|
||||
|
||||
Reference in New Issue
Block a user