fixed compilation

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12864 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2001-12-04 16:29:43 +00:00
parent e562df9b4b
commit ae4d7004d3

View File

@@ -709,7 +709,7 @@ bool wxFileName::Normalize(wxPathNormalize flags,
return FALSE; return FALSE;
} }
m_dirs.Remove(m_dirs.GetCount() - 1); m_dirs.RemoveAt(m_dirs.GetCount() - 1);
continue; continue;
} }
} }
@@ -770,8 +770,8 @@ bool wxFileName::MakeRelativeTo(const wxString& pathBase, wxPathFormat format)
while ( !m_dirs.IsEmpty() && !fnBase.m_dirs.IsEmpty() && while ( !m_dirs.IsEmpty() && !fnBase.m_dirs.IsEmpty() &&
m_dirs[0u].IsSameAs(fnBase.m_dirs[0u], withCase) ) m_dirs[0u].IsSameAs(fnBase.m_dirs[0u], withCase) )
{ {
m_dirs.Remove(0u); m_dirs.RemoveAt(0);
fnBase.m_dirs.Remove(0u); fnBase.m_dirs.RemoveAt(0);
} }
// add as many ".." as needed // add as many ".." as needed