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:
parent
8871035d85
commit
5f77e766a3
@ -133,7 +133,7 @@ private:
|
||||
wxDateTime m_ModifyTime;
|
||||
wxDateTime m_AccessTime;
|
||||
wxDateTime m_CreateTime;
|
||||
wxChar m_TypeFlag;
|
||||
int m_TypeFlag;
|
||||
wxString m_LinkName;
|
||||
wxString m_UserName;
|
||||
wxString m_GroupName;
|
||||
|
@ -529,14 +529,14 @@ wxString wxTarEntry::GetInternalName(const wxString& name,
|
||||
|
||||
bool wxTarEntry::IsDir() const
|
||||
{
|
||||
return m_TypeFlag - wxTAR_DIRTYPE == 0;
|
||||
return m_TypeFlag == wxTAR_DIRTYPE;
|
||||
}
|
||||
|
||||
void wxTarEntry::SetIsDir(bool isDir)
|
||||
{
|
||||
if (isDir)
|
||||
m_TypeFlag = wxTAR_DIRTYPE;
|
||||
else if (m_TypeFlag - wxTAR_DIRTYPE == 0)
|
||||
else if (m_TypeFlag == wxTAR_DIRTYPE)
|
||||
m_TypeFlag = wxTAR_REGTYPE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user