On Fri, Jan 12, 2018 at 8:38 PM, Vojtěch Čihák via Lazarus
<lazarus@lists.lazarus-ide.org> wrote:
> I wrote a small routine to search Lazarus sources and it found about 60
> places similar to this (taborderdlg.pas, line 398):
>
> if Assigned(LookupRoot) and (LookupRoot is TWinControl) then begin
>
> Should I make a patch for all occurences?

Yes, I think the patch would be applied.
IIRC "is" was not allowed with Nil references in old FPC versions but
it was a long time ago.

BTW, a regular expression search in the Find in Files dialog would
have found those cases, too.

Juha
-- 
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus

Reply via email to