mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-24 02:19:24 +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
|
||||
Property HdrPos : Longint Read FHeaderPos Write FheaderPos;
|
||||
Public
|
||||
constructor Create;
|
||||
constructor Create(ACollection: TCollection); override;
|
||||
function IsDirectory: Boolean;
|
||||
function IsLink: Boolean;
|
||||
Procedure Assign(Source : TPersistent); override;
|
||||
@ -1974,13 +1974,15 @@ begin
|
||||
Result:=FDiskFileName;
|
||||
end;
|
||||
|
||||
constructor TZipFileEntry.Create;
|
||||
constructor TZipFileEntry.Create(ACollection: TCollection);
|
||||
|
||||
begin
|
||||
{$IFDEF UNIX}
|
||||
FOS := OS_UNIX;
|
||||
{$ELSE}
|
||||
FOS := OS_FAT;
|
||||
{$ENDIF}
|
||||
inherited create(ACollection);
|
||||
end;
|
||||
|
||||
function TZipFileEntry.IsDirectory: Boolean;
|
||||
|
Loading…
Reference in New Issue
Block a user