瀏覽代碼

* Fix bug ID #34535, small optimization

git-svn-id: trunk@40292 -
michael 6 年之前
父節點
當前提交
9b39033ed4
共有 1 個文件被更改,包括 1 次插入4 次删除
  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;