static_cast QPlatformSurfaceEvent instead of dynamic_cast
ClosedPublic

Authored by broulik on Sep 27 2017, 10:19 AM.

Details

Summary

We check for QEvent::PlatformSurface so we can assume this is what we get.

Test Plan

Compiles, didn't notice anything unusual

Diff Detail

Repository
R120 Plasma Workspace
Lint
Lint Skipped
Unit
Unit Tests Skipped
broulik created this revision.Sep 27 2017, 10:19 AM
Restricted Application added a project: Plasma. · View Herald TranscriptSep 27 2017, 10:19 AM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
apol requested changes to this revision.Sep 27 2017, 1:04 PM
apol added a subscriber: apol.
apol added inline comments.
krunner/view.cpp
225

Then the if should be removed.

This revision now requires changes to proceed.Sep 27 2017, 1:04 PM
broulik updated this revision to Diff 19977.Sep 27 2017, 1:11 PM

Drop if check

apol accepted this revision.Sep 27 2017, 1:48 PM

+1 lgtm

This revision is now accepted and ready to land.Sep 27 2017, 1:48 PM
This revision was automatically updated to reflect the committed changes.