Don't check twice if the icon exists from ::availableSizes
ClosedPublic

Authored by apol on Dec 28 2018, 3:00 AM.

Details

Summary

It's done by iconName() as well as by the method itself.

Test Plan

Tests pass, apps still work.

Diff Detail

Repository
R302 KIconThemes
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
apol created this revision.Dec 28 2018, 3:00 AM
Restricted Application added a project: Frameworks. · View Herald TranscriptDec 28 2018, 3:00 AM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
apol requested review of this revision.Dec 28 2018, 3:00 AM
cfeck accepted this revision.Dec 28 2018, 3:23 AM
This revision is now accepted and ready to land.Dec 28 2018, 3:23 AM
cfeck added a comment.Dec 28 2018, 3:24 AM

Maybe add 'const found = ', while you are at it.

This revision was automatically updated to reflect the committed changes.