broulik added inline comments.

INLINE COMMENTS

> hpereiradacosta wrote in breezestyle.cpp:3082
> Not sure which one is the most efficient:
> Widget->inherits or qobject_cast ?
> (My guess  would need the second, but ...)
> Can you double check ?

>From what I can tell the difference is negligible. `qobject_cast` goes through 
>`QMetaObject::cast` which then calls `inherits` internally, so I'd say 
>`inherits` is the better choice.

I didn't benchmark, though. I just followed what the rest of the code around it 
was doing (`inherits`)

REPOSITORY
  R31 Breeze

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

To: broulik, #plasma, hpereiradacosta, fvogt
Cc: plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, jensreuterberg, 
abetts, sebas, apol, mart, lukas

Reply via email to