replace all instances of wxString with std::string in all cases not

directly involved in either the GUI or other wxWidget classes like wxFile
This commit is contained in:
Peter Tissen 2014-04-01 02:33:55 +02:00
parent b1894ac6cb
commit 8ac226ae69
124 changed files with 1716 additions and 1502 deletions

View file

@ -11,7 +11,7 @@ vfsDirBase::~vfsDirBase()
{
}
bool vfsDirBase::Open(const wxString& path)
bool vfsDirBase::Open(const std::string& path)
{
if(IsOpened())
Close();
@ -26,12 +26,12 @@ bool vfsDirBase::Open(const wxString& path)
bool vfsDirBase::IsOpened() const
{
return !m_cwd.IsEmpty();
return !m_cwd.empty();
}
bool vfsDirBase::IsExists(const wxString& path) const
bool vfsDirBase::IsExists(const std::string& path) const
{
return wxDirExists(path);
return wxDirExists(fmt::FromUTF8(path));
}
const Array<DirEntryInfo>& vfsDirBase::GetEntries() const
@ -41,11 +41,11 @@ const Array<DirEntryInfo>& vfsDirBase::GetEntries() const
void vfsDirBase::Close()
{
m_cwd = wxEmptyString;
m_cwd = "";
m_entries.Clear();
}
wxString vfsDirBase::GetPath() const
std::string vfsDirBase::GetPath() const
{
return m_cwd;
}