]> git.saurik.com Git - wxWidgets.git/commitdiff
Make m_typeflag an int.
authorMichael Wetherell <mike.wetherell@ntlworld.com>
Sun, 29 Oct 2006 22:31:26 +0000 (22:31 +0000)
committerMichael Wetherell <mike.wetherell@ntlworld.com>
Sun, 29 Oct 2006 22:31:26 +0000 (22:31 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42679 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/tarstrm.h
src/common/tarstrm.cpp

index adb5cb7cbf4967e9f25becc37afc1efb63ca2cfa..714156d9764dca5dcc5137041d31519f2ae5873b 100644 (file)
@@ -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;
index 65fc6a2763fea559ea6202bfc7235be189ca066b..ea47b5bc1fb07d3fb3541677c7514d674c7f0b19 100644 (file)
@@ -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;
 }