win32: remove unnecessary check for nil in EnumStayOnTopRemove. lWinControl is TCustomForm will return false anyway

git-svn-id: trunk@30342 -
This commit is contained in:
blikblum 2011-04-17 12:01:42 +00:00
parent 876b12fea5
commit 33183a009f

View File

@ -843,8 +843,7 @@ begin
if Assigned(lWindowInfo) then if Assigned(lWindowInfo) then
begin begin
lWinControl := lWindowInfo^.WinControl; lWinControl := lWindowInfo^.WinControl;
if Assigned(lWinControl) and if (lWinControl is TCustomForm) and
(lWinControl is TCustomForm) and
(TCustomForm(lWinControl).FormStyle = fsSystemStayOnTop) then (TCustomForm(lWinControl).FormStyle = fsSystemStayOnTop) then
Exit; Exit;
end; end;