mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 10:11:29 +02:00
* Merging revisions r43714 from trunk:
------------------------------------------------------------------------ r43714 | michael | 2019-12-23 14:15:19 +0100 (Mon, 23 Dec 2019) | 1 line * Fix bug ID #34303, readability opimizations ------------------------------------------------------------------------ git-svn-id: branches/fixes_3_2@43753 -
This commit is contained in:
parent
bc1966c1dc
commit
5594fb1cc3
@ -1811,7 +1811,7 @@ end;
|
|||||||
function TStringList.Add(const S: string): Integer;
|
function TStringList.Add(const S: string): Integer;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
If Not (SortStyle=sslAuto) then
|
If (SortStyle<>sslAuto) then
|
||||||
Result:=FCount
|
Result:=FCount
|
||||||
else
|
else
|
||||||
If Find (S,Result) then
|
If Find (S,Result) then
|
||||||
@ -1969,7 +1969,7 @@ end;
|
|||||||
procedure TStringList.CustomSort(CompareFn: TStringListSortCompare);
|
procedure TStringList.CustomSort(CompareFn: TStringListSortCompare);
|
||||||
|
|
||||||
begin
|
begin
|
||||||
If (FForceSort or (Not (FSortStyle=sslAuto))) and (FCount>1) then
|
If (FCount>1) and (FForceSort or (FSortStyle<>sslAuto)) then
|
||||||
begin
|
begin
|
||||||
Changing;
|
Changing;
|
||||||
QuickSort(0,FCount-1, CompareFn);
|
QuickSort(0,FCount-1, CompareFn);
|
||||||
|
Loading…
Reference in New Issue
Block a user