Improve string handling
AbandonedPublic

Authored by apol on Dec 4 2017, 1:20 PM.

Details

Reviewers
None
Group Reviewers
Frameworks
Summary

Instead of using implicit casts, use the ones we need as suggested for KF5.

Test Plan

Builds, tests pass

Diff Detail

Repository
R302 KIconThemes
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
apol created this revision.Dec 4 2017, 1:20 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptDec 4 2017, 1:20 PM
apol requested review of this revision.Dec 4 2017, 1:20 PM

Looks already pretty just. I just stumbled over two issues which maybe should be clarified - see comments.

src/kiconeffect.cpp
163

This should be:
if (effectGroupState == Colorize || effectGroupState == ToMonochrome) {

or do I miss something?

165

Previously, this was not an else if(), but just an if().

Are you sure this works as intended?

apol marked 2 inline comments as done.Dec 12 2017, 12:57 AM

Thanks!

src/kiconeffect.cpp
165

Yes, effectGroupState is not going to change values out of the blue.

apol abandoned this revision.Dec 12 2017, 1:02 AM
apol marked an inline comment as done.
apol added a subscriber: mlaurent.

:( when I rebased to current master I realized that @mlaurent worked on a very similar patch without going through review (which btw is policy in KDE Frameworks).

*pouts*