[kdev 4] isn't this dangerous?
Jens Herden
jens at kdewebdev.org
Fri Apr 20 10:59:19 UTC 2007
Hi,
I found this code in lib/interfaces/iplugin.cpp:
IPlugin::IPlugin( const KComponentData &instance, QObject *parent )
: QObject( parent ),
KXMLGUIClient(), d( new IPluginPrivate )
{
d->core = static_cast<KDevelop::ICore*>(parent);
setComponentData( instance );
}
and I wonder why we need the static_cast here. I think it would be saver to
change the constructer to receive a KDevelop::ICore* instead of a QParent*
Or is there a reason why we can not do this?
Jens
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20070420/297bb0cb/attachment.sig>
More information about the KDevelop-devel
mailing list