Browse Source

* Fix bug ID #34535, small optimization

git-svn-id: trunk@40292 -
michael 6 years ago
parent
commit
9b39033ed4
1 changed files with 1 additions and 4 deletions
  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;
 function TDeque.IsEmpty():boolean;inline;
 begin
 begin
-  if Size()=0 then 
-    IsEmpty:=true
-  else 
-    IsEmpty:=false;
+  IsEmpty:=Size()=0;
 end;
 end;
 
 
 procedure TDeque.PushBack(value:T);inline;
 procedure TDeque.PushBack(value:T);inline;