added default ctor and fixed copying of wxFileData (patch 1149384)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32421 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2005-02-27 15:54:25 +00:00
parent 85bb33f492
commit ca9fb418d2
2 changed files with 15 additions and 3 deletions

View File

@@ -162,6 +162,7 @@ public:
is_drive = 0x0008
};
wxFileData() { Init(); }
// Full copy constructor
wxFileData( const wxFileData& fileData ) { Copy(fileData); }
// Create a filedata from this information
@@ -224,10 +225,10 @@ public:
// initialize a wxListItem attributes
void MakeItem( wxListItem &item );
// operators
wxFileData& operator = (const wxFileData& fd) { Copy(fd); return *this; }
private:
protected:
wxString m_fileName;
wxString m_filePath;
long m_size;
@@ -235,6 +236,9 @@ private:
wxString m_permissions;
int m_type;
int m_image;
private:
void Init();
};
//-----------------------------------------------------------------------------