[Webkit-unassigned] [Bug 49343] Use qobject_cast instead of static_cast when using the platform plugin extensions

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Nov 12 07:27:39 PST 2010


https://bugs.webkit.org/show_bug.cgi?id=49343





--- Comment #5 from Andre Pedralho <andre.pedralho at gmail.com>  2010-11-12 07:27:39 PST ---
(In reply to comment #4)
> (In reply to comment #3)

Ok! That's true! I see that the static_cast will not fail and it is faster... My motivation to do those changes were in the docs that say:

Making an application extensible through plugins involves the following steps:

   1. Define a set of interfaces (classes with only pure virtual functions) used to talk to the plugins.
   2. Use the Q_DECLARE_INTERFACE() macro to tell Qt's meta-object system about the interface.
   3. Use QPluginLoader in the application to load the plugins.
   4. Use qobject_cast() to test whether a plugin implements a given interface.

But that's ok for me to mark this bug as invalid as we are considering one single plugin (that follows this model) and is extended in other small pieces.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list