소스 검색

* Removed workaround for bug #9827, since it was fixed.

git-svn-id: trunk@9549 -
yury 17 년 전
부모
커밋
4b3015802a
1개의 변경된 파일1개의 추가작업 그리고 5개의 파일을 삭제
  1. 1 5
      rtl/objpas/fgl.pp

+ 1 - 5
rtl/objpas/fgl.pp

@@ -611,12 +611,8 @@ begin
   {$note TODO: fix inlining to work! InternalItems[Result]^}
   while (Result < FCount) and (PT(FList)[Result] <> Item) do
     Inc(Result);
-  {$note TODO: Result := -1; does not compile }
   if Result = FCount then
-  begin
-    Result := 0;
-    dec(Result);
-  end;
+    Result := -1;
 end;
 
 procedure TFPGList.Insert(Index: Integer; const Item: T);