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:
@@ -157,6 +157,7 @@ extern size_t wxGetAvailableDrives(wxArrayString &paths, wxArrayString &names, w
|
||||
|
||||
wxFileData::wxFileData( const wxString &filePath, const wxString &fileName, fileType type, int image_id )
|
||||
{
|
||||
Init();
|
||||
m_fileName = fileName;
|
||||
m_filePath = filePath;
|
||||
m_type = type;
|
||||
@@ -165,6 +166,13 @@ wxFileData::wxFileData( const wxString &filePath, const wxString &fileName, file
|
||||
ReadData();
|
||||
}
|
||||
|
||||
void wxFileData::Init()
|
||||
{
|
||||
m_size = 0;
|
||||
m_type = wxFileData::is_file;
|
||||
m_image = wxFileIconsTable::file;
|
||||
}
|
||||
|
||||
void wxFileData::Copy( const wxFileData& fileData )
|
||||
{
|
||||
m_fileName = fileData.GetFileName();
|
||||
@@ -173,7 +181,7 @@ void wxFileData::Copy( const wxFileData& fileData )
|
||||
m_dateTime = fileData.GetDateTime();
|
||||
m_permissions = fileData.GetPermissions();
|
||||
m_type = fileData.GetType();
|
||||
m_image = GetImageId();
|
||||
m_image = fileData.GetImageId();
|
||||
}
|
||||
|
||||
void wxFileData::ReadData()
|
||||
|
Reference in New Issue
Block a user