Removed an unnecessary reset()
This commit is contained in:
parent
6aed0b6709
commit
0f5fe04168
1 changed files with 1 additions and 3 deletions
|
|
@ -200,10 +200,8 @@ void sfz::FilePool::cleanupPromises() noexcept
|
||||||
{
|
{
|
||||||
FilePromisePtr promise;
|
FilePromisePtr promise;
|
||||||
// Remove stuff from the filled queue and put them in a linear storage
|
// Remove stuff from the filled queue and put them in a linear storage
|
||||||
while (filledPromiseQueue.try_dequeue(promise)) {
|
while (filledPromiseQueue.try_dequeue(promise))
|
||||||
temporaryFilePromises.push_back(promise);
|
temporaryFilePromises.push_back(promise);
|
||||||
promise.reset();
|
|
||||||
}
|
|
||||||
|
|
||||||
auto promiseIterator = temporaryFilePromises.begin();
|
auto promiseIterator = temporaryFilePromises.begin();
|
||||||
auto sentinel = temporaryFilePromises.end() - 1;
|
auto sentinel = temporaryFilePromises.end() - 1;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue