Review Request 116666: Use a QMutableHashIterator in KItemListViewAnimation::slotFinished() for deleting an item from a hash

Frank Reininghaus frank78ac at googlemail.com
Sun Mar 9 09:03:03 GMT 2014


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/116666/
-----------------------------------------------------------

Review request for Dolphin.


Bugs: 331876
    http://bugs.kde.org/show_bug.cgi?id=331876


Repository: kde-baseapps


Description
-------

KItemListViewAnimation::slotFinished() uses a QHashIterator to iterate over a QHash, and then removes an item from the hash using QHash::remove() inside the loop.

This is quite unusual - the recommended way is to use a QMutableHashIterator (or std-style iterators and then QHash::erase(it)).

This might be related to the cause of the crash.


Diffs
-----

  dolphin/src/kitemviews/private/kitemlistviewanimation.cpp e347c5b 

Diff: https://git.reviewboard.kde.org/r/116666/diff/


Testing
-------

I couldn't find any regressions, but I cannot be sure that it fixes the crash because I cannot reproduce the crash.


Thanks,

Frank Reininghaus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20140309/179f8b6a/attachment.htm>


More information about the kfm-devel mailing list