Review Request 129334: One line bug in KItemListWidget.cpp

Christoph Feck cfeck at kde.org
Fri Nov 4 20:36:41 GMT 2016


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




src/kitemviews/kitemlistwidget.cpp (line 183)
<https://git.reviewboard.kde.org/r/129334/#comment67520>

    I would suggest moving this before the if, so that (the "expensive") .value() isn't called twice.


- Christoph Feck


On Nov. 4, 2016, 9:29 p.m., Don Nguyen wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/129334/
> -----------------------------------------------------------
> 
> (Updated Nov. 4, 2016, 9:29 p.m.)
> 
> 
> Review request for Dolphin.
> 
> 
> Repository: dolphin
> 
> 
> Description
> -------
> 
> previousWidth was set incorrectly.  since this variable isn't currently being used, it doesn't affect anything, but if someone tries to use it in the future, it would be incorrect.
> 
> 
> Diffs
> -----
> 
>   src/kitemviews/kitemlistwidget.cpp 9c31155 
> 
> Diff: https://git.reviewboard.kde.org/r/129334/diff/
> 
> 
> Testing
> -------
> 
> I tested it with the debugger to verify that the function that accepts this value (colunnWidthChanged) now gets the correct value (even tho it doesn't use it).
> 
> 
> Thanks,
> 
> Don Nguyen
> 
>

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


More information about the kfm-devel mailing list