Review Request 126531: Fix some Clazy warnings in kemoticons.

Aleix Pol Gonzalez aleixpol at kde.org
Sun Dec 27 17:53:19 UTC 2015


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



src/providers/adium/adium_emoticons.cpp (line 51)
<https://git.reviewboard.kde.org/r/126531/#comment61740>

    Comparison wants QLatin1String() as it has the overload.



src/providers/kde/kde_emoticons.cpp (line 50)
<https://git.reviewboard.kde.org/r/126531/#comment61741>

    Use QLatin1String() when comparing.



src/providers/pidgin/pidgin_emoticons.cpp (line 180)
<https://git.reviewboard.kde.org/r/126531/#comment61742>

    Use QLatin1String when comparing, same for the next one.


Are you sure you used clazy properly? It usually detects those warnings correctly.

- Aleix Pol Gonzalez


On Dec. 27, 2015, 6:50 p.m., Andrey Cygankov wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/126531/
> -----------------------------------------------------------
> 
> (Updated Dec. 27, 2015, 6:50 p.m.)
> 
> 
> Review request for KDE Frameworks and Aleix Pol Gonzalez.
> 
> 
> Repository: kemoticons
> 
> 
> Description
> -------
> 
> Fix some Clazy warnings:
> - unneeded heap allocation with QString
> - multi-arg non-usage
> 
> 
> Diffs
> -----
> 
>   autotests/kemoticontest.cpp df7fb71 
>   autotests/ktexttohtmlplugintest.cpp 0daa222 
>   src/core/kemoticons.cpp 886cc3f 
>   src/providers/adium/adium_emoticons.cpp 31535ab 
>   src/providers/kde/kde_emoticons.cpp 2723e00 
>   src/providers/pidgin/pidgin_emoticons.cpp 92398c4 
>   src/providers/xmpp/xmpp_emoticons.cpp af71ef9 
>   tests/main.cpp d1eab5b 
> 
> Diff: https://git.reviewboard.kde.org/r/126531/diff/
> 
> 
> Testing
> -------
> 
> Compiling without errors.
> 
> 
> Thanks,
> 
> Andrey Cygankov
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20151227/12185fb5/attachment-0001.html>


More information about the Kde-frameworks-devel mailing list