[Qt] DestroyGlobalCaret

zeljko zeljko at holobit.net
Wed Jul 18 09:19:29 CEST 2007


On Wednesday 18 July 2007 08:53, Paul Ishenin wrote:
> Vincent Snijders wrote:
> > Hi,
> >
> > I looked at r11564.
> >
> > procedure DestroyGlobalCaret can be much simpler:
> >
> > FreeAndNil(GlobalCaret);
> >
> > I don't know if DestroyGlobalCaret is called from more than one place,
> > but if it is used in only one place, I would remove the complete
> > procedure.
>
> yes, it is used in only one place. Free free to do anything you want
> with it :)
>
> And btw about later commit (by zeljan):
>
> this condition is not needed:
>
>   if GlobalCaret <> nil then
>
> before GlobalCaret.Free sice Free already check object for nil before
> call destructor.

wow, in K3 this will produce AV (if I remember correctly)

>
> Zeljan, I you were on irc channel our communications will be easier :)

yep, I'll try to do so, but I've told you that it's summertime here ;), I have 
to install some IRC app (didn't use IRC for years ...)  ... what was the irc 
server & channel ?



More information about the Qt mailing list