LCL: clean up

git-svn-id: trunk@46595 -
This commit is contained in:
mattias 2014-10-18 19:29:00 +00:00
parent 0c23fdc9d4
commit 3ff2c569d2

View File

@ -134,7 +134,7 @@ end;
procedure TCustomListBox.FinalizeWnd; procedure TCustomListBox.FinalizeWnd;
var var
NewStrings: TExtendedStringList; NewStrings: TExtendedStringList;
i, Cnt: integer; i: integer;
begin begin
LockSelectionChange; LockSelectionChange;
@ -149,8 +149,7 @@ begin
// copy items (text+objects) from the interface items list // copy items (text+objects) from the interface items list
NewStrings.Assign(Items); NewStrings.Assign(Items);
// copy items attributes // copy items attributes
Cnt := Items.Count; for i:=0 to Items.Count-1 do
for i:=0 to Cnt-1 do
AssignItemDataToCache(i, NewStrings.Records[i]); AssignItemDataToCache(i, NewStrings.Records[i]);
// free the interface items list // free the interface items list