Use less Toplevel::isClient()
ClosedPublic

Authored by zzag on Jan 9 2020, 12:25 PM.

Details

Reviewers
None
Group Reviewers
KWin
Commits
R108:4d161bec4835: Use less Toplevel::isClient()
Summary

Prefer qobject_cast<> over Toplevel::isClient() because it's more type
safer and makes code a bit more readable.

Hopefully, one day we will be able to get rid of isClient() altogether.

Test Plan

Compiles.

Diff Detail

Repository
R108 KWin
Branch
dont-use-toplevel-is-client
Lint
Lint ErrorsExcuse: cppcheck is dumb
SeverityLocationCodeMessage
Errorutils.h:123CppcheckunknownMacro
Unit
No Unit Test Coverage
Build Status
Buildable 20844
Build 20862: arc lint + arc unit
zzag created this revision.Jan 9 2020, 12:25 PM
Restricted Application added a project: KWin. · View Herald TranscriptJan 9 2020, 12:25 PM
Restricted Application added a subscriber: kwin. · View Herald Transcript
zzag requested review of this revision.Jan 9 2020, 12:25 PM
This revision was not accepted when it landed; it landed in state Needs Review.Jan 23 2020, 10:29 AM
This revision was automatically updated to reflect the committed changes.