|
@@ -1017,16 +1017,7 @@ end;
|
|
|
|
|
|
Procedure TStringList.InsertItem(Index: Integer; const S: string);
|
|
|
begin
|
|
|
- Changing;
|
|
|
- If FCount=Fcapacity then Grow;
|
|
|
- If Index<FCount then
|
|
|
- System.Move (FList^[Index],FList^[Index+1],
|
|
|
- (FCount-Index)*SizeOf(TStringItem));
|
|
|
- Pointer(Flist^[Index].Fstring):=Nil; // Needed to initialize...
|
|
|
- Flist^[Index].FString:=S;
|
|
|
- Flist^[Index].Fobject:=Nil;
|
|
|
- Inc(FCount);
|
|
|
- Changed;
|
|
|
+ InsertItem(Index, S, nil);
|
|
|
end;
|
|
|
|
|
|
|