mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-16 10:19:30 +02:00
* make TProxyStream.Check an abstract method; as it is right now one had to override it anyway because it always raised an exception
git-svn-id: trunk@48097 -
This commit is contained in:
parent
6160abe37e
commit
38cde38177
@ -1139,7 +1139,7 @@ type
|
||||
function Read(var Buffer; Count: Longint): Longint; override;
|
||||
function Write(const Buffer; Count: Longint): Longint; override;
|
||||
function Seek(const Offset: int64; Origin: TSeekOrigin): int64; override;
|
||||
procedure Check(err:integer); virtual;
|
||||
procedure Check(err:integer); virtual; abstract;
|
||||
end;
|
||||
|
||||
{ TOwnerStream }
|
||||
|
@ -2038,12 +2038,4 @@ begin
|
||||
Result := FStream;
|
||||
end;
|
||||
|
||||
procedure TProxyStream.Check(err:integer);
|
||||
var e : EInOutError;
|
||||
begin
|
||||
e:= EInOutError.Create('Proxystream.Check');
|
||||
e.Errorcode:=err;
|
||||
raise e;
|
||||
end;
|
||||
|
||||
{$pop}
|
||||
|
Loading…
Reference in New Issue
Block a user