mirror of
https://github.com/winscp/winscp.git
synced 2026-10-24 02:28:55 +03:00
- Once doing that, including more headers to PCH, not just vcl.h - Clang won't need explicit include, but we will probably keep it anyway. - #pragma hdrstop has no effect in Clang Source commit: adc8a268b6907c5337ccaa430cca7526793a3019
47 lines
839 B
C++
47 lines
839 B
C++
//---------------------------------------------------------------------------
|
|
#include "FileZillaPCH.h"
|
|
|
|
t_directory::t_directory()
|
|
{
|
|
direntry=0;
|
|
num=0;
|
|
}
|
|
|
|
t_directory::~t_directory()
|
|
{
|
|
if (direntry)
|
|
delete [] direntry;
|
|
}
|
|
|
|
t_directory& t_directory::operator=(const t_directory &a)
|
|
{
|
|
if (&a==this)
|
|
return *this;
|
|
|
|
if (direntry)
|
|
delete [] direntry;
|
|
direntry=0;
|
|
path=a.path;
|
|
num=a.num;
|
|
server=a.server;
|
|
if (num)
|
|
direntry=new t_directory::t_direntry[num];
|
|
for (int i=0;i<num;i++)
|
|
direntry[i]=a.direntry[i];
|
|
return *this;
|
|
}
|
|
|
|
t_directory::t_direntry::t_direntry()
|
|
{
|
|
dir=FALSE;
|
|
size=0;
|
|
bUnsure=TRUE;
|
|
bLink=FALSE;
|
|
}
|
|
|
|
t_directory::t_direntry::t_date::t_date()
|
|
{
|
|
year=month=day=hour=minute=second=0;
|
|
hasdate=hastime=hasyear=hasseconds=utc=FALSE;
|
|
}
|