Make m_typeflag an int.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42679 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -133,7 +133,7 @@ private:
|
|||||||
wxDateTime m_ModifyTime;
|
wxDateTime m_ModifyTime;
|
||||||
wxDateTime m_AccessTime;
|
wxDateTime m_AccessTime;
|
||||||
wxDateTime m_CreateTime;
|
wxDateTime m_CreateTime;
|
||||||
wxChar m_TypeFlag;
|
int m_TypeFlag;
|
||||||
wxString m_LinkName;
|
wxString m_LinkName;
|
||||||
wxString m_UserName;
|
wxString m_UserName;
|
||||||
wxString m_GroupName;
|
wxString m_GroupName;
|
||||||
|
@@ -529,14 +529,14 @@ wxString wxTarEntry::GetInternalName(const wxString& name,
|
|||||||
|
|
||||||
bool wxTarEntry::IsDir() const
|
bool wxTarEntry::IsDir() const
|
||||||
{
|
{
|
||||||
return m_TypeFlag - wxTAR_DIRTYPE == 0;
|
return m_TypeFlag == wxTAR_DIRTYPE;
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxTarEntry::SetIsDir(bool isDir)
|
void wxTarEntry::SetIsDir(bool isDir)
|
||||||
{
|
{
|
||||||
if (isDir)
|
if (isDir)
|
||||||
m_TypeFlag = wxTAR_DIRTYPE;
|
m_TypeFlag = wxTAR_DIRTYPE;
|
||||||
else if (m_TypeFlag - wxTAR_DIRTYPE == 0)
|
else if (m_TypeFlag == wxTAR_DIRTYPE)
|
||||||
m_TypeFlag = wxTAR_REGTYPE;
|
m_TypeFlag = wxTAR_REGTYPE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user