Review Request 127522: kcodec: Simplify code (qCount -> std::count, homegrown isprint -> QChar::isPrint)

Dominik Haumann dhaumann at kde.org
Tue Mar 29 17:06:46 UTC 2016


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

(Updated March 29, 2016, 5:06 p.m.)


Status
------

This change has been marked as submitted.


Review request for KDE Frameworks.


Changes
-------

Submitted with commit 1596261e68c2665f143e95e44dc666398761daed by Dominik Haumann to branch master.


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/70cc8af8/attachment.html>


More information about the Kde-frameworks-devel mailing list