[kdev 4] isn't this dangerous?

Matt Rogers mattr at kde.org
Sat Apr 21 15:22:38 UTC 2007


On Saturday 21 April 2007 09:25, Andreas Pakulat wrote:
> On 21.04.07 08:45:30, Matt Rogers wrote:
> > On Apr 21, 2007, at 12:41 AM, Andras Mantia wrote:
> > > On Friday 20 April 2007, Alexander Dymo wrote:
> > >> In our case static_cast is ok because plugin controller never sends
> > >> anything other than KDevelop::ICore pointer as an object.
> > >
> > > In that case of course it is fine to have the static_cast, but it was
> > > unclear (for me, and probably for Jens as well), what kind of pointer
> > > can you get there.
> > >
> > > Andras
> >
> > We should probably add a comment there so that people can read the
> > code and know it's safe. Any takers?
>
> Done.
>
> Andreas

Excellent. Thanks!
-- 
Matt




More information about the KDevelop-devel mailing list