浏览代码

* Fix bug ID #34303, readability opimizations

git-svn-id: trunk@43714 -
michael 5 年之前
父节点
当前提交
abeb00cd94
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      rtl/objpas/classes/stringl.inc

+ 2 - 2
rtl/objpas/classes/stringl.inc

@@ -1765,7 +1765,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
@@ -1953,7 +1953,7 @@ procedure TStringList.CustomSort(CompareFn: TStringListSortCompare; SortingAlgor
 var
 var
   Context: TStringList_CustomSort_Context;
   Context: TStringList_CustomSort_Context;
 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;