|
@@ -1811,7 +1811,7 @@ end;
|
|
|
function TStringList.Add(const S: string): Integer;
|
|
|
|
|
|
begin
|
|
|
- If Not (SortStyle=sslAuto) then
|
|
|
+ If (SortStyle<>sslAuto) then
|
|
|
Result:=FCount
|
|
|
else
|
|
|
If Find (S,Result) then
|
|
@@ -1969,7 +1969,7 @@ end;
|
|
|
procedure TStringList.CustomSort(CompareFn: TStringListSortCompare);
|
|
|
|
|
|
begin
|
|
|
- If (FForceSort or (Not (FSortStyle=sslAuto))) and (FCount>1) then
|
|
|
+ If (FCount>1) and (FForceSort or (FSortStyle<>sslAuto)) then
|
|
|
begin
|
|
|
Changing;
|
|
|
QuickSort(0,FCount-1, CompareFn);
|