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:
Michael Wetherell
2006-10-29 22:31:26 +00:00
parent 8871035d85
commit 5f77e766a3
2 changed files with 3 additions and 3 deletions

View File

@@ -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;

View File

@@ -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;
} }