changed Remove/InsertDir() parameter type to size_t from int; added RemoveLastDir()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31978 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2005-02-13 00:55:27 +00:00
parent 48a4834d6d
commit 2458d90b1d
3 changed files with 29 additions and 15 deletions

View File

@@ -1320,26 +1320,26 @@ bool wxFileName::IsPathSeparator(wxChar ch, wxPathFormat format)
return true;
}
void wxFileName::AppendDir( const wxString &dir )
void wxFileName::AppendDir( const wxString& dir )
{
if ( IsValidDirComponent(dir) )
m_dirs.Add( dir );
}
void wxFileName::PrependDir( const wxString &dir )
void wxFileName::PrependDir( const wxString& dir )
{
InsertDir(0, dir);
}
void wxFileName::InsertDir( int before, const wxString &dir )
void wxFileName::InsertDir(size_t before, const wxString& dir)
{
if ( IsValidDirComponent(dir) )
m_dirs.Insert( dir, before );
m_dirs.Insert(dir, before);
}
void wxFileName::RemoveDir( int pos )
void wxFileName::RemoveDir(size_t pos)
{
m_dirs.RemoveAt( (size_t)pos );
m_dirs.RemoveAt(pos);
}
// ----------------------------------------------------------------------------