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

Commit Hook null at kde.org
Tue Mar 11 08:11:52 GMT 2014


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


This review has been submitted with commit 1cbb06f593879ecf2c715d53153ae8bda8e01f93 by Frank Reininghaus to branch KDE/4.13.

- Commit Hook


On March 9, 2014, 9:03 a.m., Frank Reininghaus wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/116666/
> -----------------------------------------------------------
> 
> (Updated March 9, 2014, 9:03 a.m.)
> 
> 
> 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/20140311/8838a3a4/attachment.htm>


More information about the kfm-devel mailing list