LCL: write a piece of code in a shorter way.

git-svn-id: trunk@30260 -
This commit is contained in:
juha 2011-04-10 17:07:39 +00:00
parent 1fbf4abaa6
commit 4d7d059433

View File

@ -1359,10 +1359,7 @@ Begin
Top := Top + dy;
Bottom := Bottom + dy;
end;
if (ARect.Left >= 0) and (ARect.Top >= 0) then
Result := True
else
Result := False;
Result := (ARect.Left >= 0) and (ARect.Top >= 0);
end;
procedure FreeThenNil(var obj);