[kdev 4] isn't this dangerous?
Andras Mantia
amantia at kde.org
Fri Apr 20 18:57:24 UTC 2007
On Friday 20 April 2007, Andreas Pakulat wrote:
> Well, if the dynamic_cast fails the plugin won't work and from the
> plugin destructor I don't think we can abort the plugin creation (or
> can we?).
I don't know, but having a null pointer (for d->core) instead of an
invalid pointer is still better, IMO. If it ever happens that parent is
not a KDevelop::ICore, for null pointer it will crash at first access,
but with the invalid pointer who knows what will happen.
Andras
--
Quanta Plus developer - http://quanta.kdewebdev.org
K Desktop Environment - http://www.kde.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20070420/cdb190b8/attachment.sig>
More information about the KDevelop-devel
mailing list