Change TIdCookies.GetItem?

Giganews Newsgroups
Subject: Change TIdCookies.GetItem?
Posted by:  Christian Gorski (no.spam@no.spam.com)
Date: Sat, 12 Apr 2008

Would you mind to change this in IdCookie.pas?

function TIdCookies.GetItem(Index: Integer): TIdCookieRFC2109;
begin
//  result := (inherited Items[Index]) as TIdCookieRFC2109;
  result := TIdCookieRFC2109((inherited Items[Index]));
end;

Because then you can use it in a DLL without problems.

Replies