Turn switch statement into a hash
ClosedPublic

Authored by apol on Dec 5 2019, 2:52 PM.

Details

Summary

This way we can reverse-lookup if we ever want the opposite information.

Diff Detail

Repository
R108 KWin
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 5 2019, 2:52 PM
Restricted Application added a project: KWin. · View Herald TranscriptDec 5 2019, 2:52 PM
Restricted Application added a subscriber: kwin. · View Herald Transcript
apol requested review of this revision.Dec 5 2019, 2:52 PM
zzag added a subscriber: zzag.Dec 5 2019, 3:59 PM
This comment was removed by zzag.
romangg accepted this revision.Dec 5 2019, 6:49 PM
This revision is now accepted and ready to land.Dec 5 2019, 6:49 PM
This revision was automatically updated to reflect the committed changes.