Review Request 126737: Fix most Clazy warnings in KItemViews.

Andrey Cygankov craftplace.ms at gmail.com
Thu Jan 14 22:43:21 UTC 2016



> On Янв. 14, 2016, 1:03 п.п., Sergio Martins wrote:
> > Ship It!
> 
> Sergio Martins wrote:
>     Can you push it in two different commits ? One for the QStringLiteral change and another for the isEmpty()
> 
> Sergio Martins wrote:
>     Regarding the qDeleteAll(), the correct way is qDeleteAll(d->widgetInIndex.keyBegin(), d->widgetInIndex.keyEnd()), but that only works since Qt 5.6, so ignore this for now

I do not have rights to commit.
I think that it is not necessary to divide the RR into two parts. But I have divided into two different diff, to make it convenient, here they are:
https://www.dropbox.com/s/tg1bhg71myv5nqb/kitemviews-clazyfix-tocommit.patch?dl=0
https://www.dropbox.com/s/j9chp5rx2cjkeay/kitemviews-isemptyfix-tocommit.patch?dl=0


- Andrey


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


On Янв. 14, 2016, 10:40 п.п., Andrey Cygankov wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/126737/
> -----------------------------------------------------------
> 
> (Updated Янв. 14, 2016, 10:40 п.п.)
> 
> 
> Review request for KDE Frameworks, Aleix Pol Gonzalez and Sergio Martins.
> 
> 
> Repository: kitemviews
> 
> 
> Description
> -------
> 
> Fix Clazy warnings, except:
> /src/kwidgetitemdelegatepool.cpp:153:5: warning: Calling qDeleteAll with QHash::keys, call qDeleteAll on the container itself [-Wclazy-qdeleteall]
>     qDeleteAll(d->widgetInIndex.keys());
> 
> 
> Diffs
> -----
> 
>   autotests/klistwidgetsearchlinetest.cpp b86d62c 
>   src/kcategorizedview.cpp 185c24c 
>   src/ktreewidgetsearchline.cpp b721c58 
>   tests/kcategorizedviewtest.cpp 16dac9a 
>   tests/ktreewidgetsearchlinetest.cpp adaf246 
>   tests/kwidgetitemdelegatetest.cpp d4bba7a 
> 
> Diff: https://git.reviewboard.kde.org/r/126737/diff/
> 
> 
> Testing
> -------
> 
> Build without errors.
> Tests passed.
> 
> 
> Thanks,
> 
> Andrey Cygankov
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20160114/254643ea/attachment.html>


More information about the Kde-frameworks-devel mailing list