Review Request 127522: kcodec: Simplify code (qCount -> std::count, homegrown isprint -> QChar::isPrint)
Anthony Fieroni
bvbfan at abv.bg
Tue Mar 29 16:32:23 UTC 2016
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/127522/#review94110
-----------------------------------------------------------
You can move pritable at first, since it have highest priority
if (isPrintable && 4 >= aBuf[1] && aBuf[1] >= 0)
- Anthony Fieroni
On Март 29, 2016, 7:14 след обяд, Dominik Haumann wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/127522/
> -----------------------------------------------------------
>
> (Updated Март 29, 2016, 7:14 след обяд)
>
>
> Review request for KDE Frameworks.
>
>
> Repository: kcodecs
>
>
> Description
> -------
>
> This patch does two things:
> 1. use std::count() instead of deprecated qCount()
> 2. use QChar::isPrint() instead of the homegrown isprint() function.
>
> Especially (2) allows us to remove the header "src/probers/ctype_test_p.h", which looks like a C implementation of isprint().
>
>
> Diffs
> -----
>
> src/probers/UnicodeGroupProber.cpp cfbb06b
> src/probers/ctype_test_p.h 0421f99
>
> Diff: https://git.reviewboard.kde.org/r/127522/diff/
>
>
> Testing
> -------
>
> make test -> all tests PASS.
>
>
> Thanks,
>
> Dominik Haumann
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20160329/3f543d7a/attachment.html>
More information about the Kde-frameworks-devel
mailing list