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

Emmanuel Pescosta emmanuelpescosta099 at gmail.com
Sun Mar 9 09:49:02 GMT 2014


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

Ship it!


Looks good!

Maybe there are more places were we make the same mistakes? - Smth. to keep in mind for Dolphin next ;)

- Emmanuel Pescosta


On March 9, 2014, 10: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, 10: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/20140309/82ac42c3/attachment.htm>


More information about the kfm-devel mailing list