|
@@ -1935,15 +1935,7 @@ begin
|
|
|
Inherited destroy;
|
|
|
end;
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-function TStringList.Add(const S: string): Integer;
|
|
|
-
|
|
|
-begin
|
|
|
- Result := AddObject(S, nil);
|
|
|
-end;
|
|
|
-
|
|
|
-function TStringList.AddObject(const S: string; AObject: TObject): Integer;
|
|
|
+function TStringList.DoAddObject(const S: string; AObject: TObject): Integer;
|
|
|
|
|
|
begin
|
|
|
If (SortStyle<>sslAuto) then
|
|
@@ -1957,6 +1949,18 @@ begin
|
|
|
InsertItem (Result,S,AObject);
|
|
|
end;
|
|
|
|
|
|
+function TStringList.Add(const S: string): Integer;
|
|
|
+
|
|
|
+begin
|
|
|
+ Result:=DoAddObject(S, nil);
|
|
|
+end;
|
|
|
+
|
|
|
+function TStringList.AddObject(const S: string; AObject: TObject): Integer;
|
|
|
+
|
|
|
+begin
|
|
|
+ Result:=DoAddObject(S,aObject);
|
|
|
+end;
|
|
|
+
|
|
|
procedure TStringList.Clear;
|
|
|
|
|
|
begin
|