]> cloud.milkyroute.net Git - dolphin.git/commit
Fix FIFO usage
authorElvis Angelaccio <elvis.angelaccio@kde.org>
Sun, 31 May 2020 21:43:46 +0000 (23:43 +0200)
committerElvis Angelaccio <elvis.angelaccio@kde.org>
Sun, 31 May 2020 21:45:07 +0000 (23:45 +0200)
commitc16f777b289fb617217c8c19aa320fbe90f38209
tree9dd3b55688093cc3e56a638b298f92b67b6a1cbc
parent664f97ff0d1c70f7df4f4fa32303949ee7a6e8fb
Fix FIFO usage

`m_propriorityQueue` and `m_queue` are used as FIFO queues, so we need
to use `takeFirst()` instead of `takeLast()` when removing elements
from the queue.

While at it, add a comment so that we will remember these are FIFO
queues.
src/kitemviews/private/kdirectorycontentscounter.cpp
src/kitemviews/private/kdirectorycontentscounter.h