[Qt] DestroyGlobalCaret

Paul Ishenin ip at kmiac.ru
Wed Jul 18 08:53:12 CEST 2007


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.


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

Best regards,
Paul Ishenin.




More information about the Qt mailing list