Skip to content
Commit 350ea984 authored by Tomaz Canabrava's avatar Tomaz Canabrava
Browse files

Do not dynamic_cast QObject, use qobject_cast, it's faster.



qobject_cast doesn't use RTTI to figure out the type, it uses
an internally stored relationship, wich is much faster than
RTTI. I grepped the code for dynamic_cast and there are lots
besides this one, so I'll later try to figure out wich ones
are QObject inheritances and change acordingly.

Signed-off-by: default avatarTomaz Canabrava <tomaz.canabrava@intel.com>
parent 6fcdb317
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment