Refactoring
-
Eliminate "with" statements. -
Reformat long lines (a lot of lines have been broken at column 80 by, presumably, the auto-formatter). -
Use High(array)
instead ofLength(array)-1
. -
Declare reference counted and record params as const. -
Use Free
instead ofFreeAndNil
for local objects. -
Eliminate test for nil
beforeFree
. -
Replace use of Assigned
for non-delegate types with test againstnil
.
Edited by Anders Melander