mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 09:06:02 +02:00
* Fixed assign
git-svn-id: trunk@11834 -
This commit is contained in:
parent
7e5340c07c
commit
20a8aced3c
@ -266,6 +266,7 @@ Type
|
|||||||
Protected
|
Protected
|
||||||
Property HdrPos : Longint Read FHeaderPos Write FheaderPos;
|
Property HdrPos : Longint Read FHeaderPos Write FheaderPos;
|
||||||
Public
|
Public
|
||||||
|
Procedure Assign(Source : TPersistent); override;
|
||||||
Property Stream : TStream Read FStream Write FStream;
|
Property Stream : TStream Read FStream Write FStream;
|
||||||
Published
|
Published
|
||||||
Property ArchiveFileName : String Read GetArchiveFileName Write FArchiveFileName;
|
Property ArchiveFileName : String Read GetArchiveFileName Write FArchiveFileName;
|
||||||
@ -1557,6 +1558,25 @@ begin
|
|||||||
Result:=FDiskFileName;
|
Result:=FDiskFileName;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TZipFileEntry.Assign(Source: TPersistent);
|
||||||
|
|
||||||
|
Var
|
||||||
|
Z : TZipFileEntry;
|
||||||
|
|
||||||
|
begin
|
||||||
|
if Source is TZipFileEntry then
|
||||||
|
begin
|
||||||
|
Z:=Source as TZipFileEntry;
|
||||||
|
FArchiveFileName:=Z.FArchiveFileName;
|
||||||
|
FDiskFileName:=Z.FDiskFileName;
|
||||||
|
FSize:=Z.FSize;
|
||||||
|
FDateTime:=Z.FDateTime;
|
||||||
|
FStream:=Z.FStream;
|
||||||
|
end
|
||||||
|
else
|
||||||
|
inherited Assign(Source);
|
||||||
|
end;
|
||||||
|
|
||||||
{ TZipFileEntries }
|
{ TZipFileEntries }
|
||||||
|
|
||||||
function TZipFileEntries.GetZ(AIndex : Integer): TZipFileEntry;
|
function TZipFileEntries.GetZ(AIndex : Integer): TZipFileEntry;
|
||||||
|
Loading…
Reference in New Issue
Block a user