mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 17:29:33 +02:00
* Override virtual constructor instead of adding a static one so that it is actually called. Fixes problems on non-Windows
git-svn-id: trunk@16037 -
This commit is contained in:
parent
1633341906
commit
3024947d5f
@ -265,7 +265,7 @@ Type
|
|||||||
Protected
|
Protected
|
||||||
Property HdrPos : Longint Read FHeaderPos Write FheaderPos;
|
Property HdrPos : Longint Read FHeaderPos Write FheaderPos;
|
||||||
Public
|
Public
|
||||||
constructor Create;
|
constructor Create(ACollection: TCollection); override;
|
||||||
function IsDirectory: Boolean;
|
function IsDirectory: Boolean;
|
||||||
function IsLink: Boolean;
|
function IsLink: Boolean;
|
||||||
Procedure Assign(Source : TPersistent); override;
|
Procedure Assign(Source : TPersistent); override;
|
||||||
@ -1974,13 +1974,15 @@ begin
|
|||||||
Result:=FDiskFileName;
|
Result:=FDiskFileName;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
constructor TZipFileEntry.Create;
|
constructor TZipFileEntry.Create(ACollection: TCollection);
|
||||||
|
|
||||||
begin
|
begin
|
||||||
{$IFDEF UNIX}
|
{$IFDEF UNIX}
|
||||||
FOS := OS_UNIX;
|
FOS := OS_UNIX;
|
||||||
{$ELSE}
|
{$ELSE}
|
||||||
FOS := OS_FAT;
|
FOS := OS_FAT;
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
|
inherited create(ACollection);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TZipFileEntry.IsDirectory: Boolean;
|
function TZipFileEntry.IsDirectory: Boolean;
|
||||||
|
Loading…
Reference in New Issue
Block a user