Use qobject_cast instead of dynamic_cast
ClosedPublic

Authored by yurchor on Dec 20 2018, 9:15 AM.

Details

Summary

It is supposed that qobject_cast is more efficient.

Test Plan
  1. Compiles and installs.
  2. Seems to work as expected.

Diff Detail

Repository
R167 Krusader
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
yurchor requested review of this revision.Dec 20 2018, 9:15 AM
yurchor created this revision.
yurchor added a reviewer: mchabrecek.
shubham accepted this revision.EditedDec 20 2018, 12:49 PM
shubham added a subscriber: shubham.

Valid, all are QObject.

This revision is now accepted and ready to land.Dec 20 2018, 12:49 PM
This revision was automatically updated to reflect the committed changes.