dfaure added a comment.
Indeed there's no reserve for std::list. And std::queue is FIFO, not LIFO. std::stack would be a more appropriate container here. REPOSITORY R241 KIO REVISION DETAIL https://phabricator.kde.org/D25443 To: nicolasfella, #frameworks Cc: dfaure, bruns, fabiank, kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham