Browse Source

* Fix bug ID #34535, small optimization

git-svn-id: trunk@40292 -
michael 6 năm trước cách đây
mục cha
commit
9b39033ed4
1 tập tin đã thay đổi với 1 bổ sung4 xóa
  1. 1 4
      packages/fcl-stl/src/gdeque.pp

+ 1 - 4
packages/fcl-stl/src/gdeque.pp

@@ -72,10 +72,7 @@ end;
 
 function TDeque.IsEmpty():boolean;inline;
 begin
-  if Size()=0 then 
-    IsEmpty:=true
-  else 
-    IsEmpty:=false;
+  IsEmpty:=Size()=0;
 end;
 
 procedure TDeque.PushBack(value:T);inline;