D17678: Use qobject_cast instead of dynamic_cast

Kai Uwe Broulik noreply at phabricator.kde.org
Wed Dec 19 09:27:14 GMT 2018


broulik created this revision.
broulik added reviewers: davidedmundson, dfaure, chinmoyr.
Herald added a project: Frameworks.
Herald added a subscriber: kde-frameworks-devel.
broulik requested review of this revision.

REVISION SUMMARY
  Since `KJob` is a `QObject` we can use the more efficient `qobject_cast` here

TEST PLAN
  Copied 1000 files, saved half a millisecond

REPOSITORY
  R241 KIO

REVISION DETAIL
  https://phabricator.kde.org/D17678

AFFECTED FILES
  src/core/copyjob.cpp
  src/core/job.cpp

To: broulik, davidedmundson, dfaure, chinmoyr
Cc: kde-frameworks-devel, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20181219/aeb057ce/attachment.html>


More information about the Kde-frameworks-devel mailing list