mirror of https://github.com/PCSX2/pcsx2.git
PathUtils: Make wxDirName::{Rmdir,Mkdir} const
This commit is contained in:
parent
8b44e3d6f6
commit
324a3d09e6
|
@ -166,8 +166,8 @@ public:
|
||||||
bool SetCwd() { return wxFileName::SetCwd(); }
|
bool SetCwd() { return wxFileName::SetCwd(); }
|
||||||
|
|
||||||
// wxWidgets is missing the const qualifier for this one! Shame!
|
// wxWidgets is missing the const qualifier for this one! Shame!
|
||||||
void Rmdir();
|
void Rmdir() const;
|
||||||
bool Mkdir();
|
bool Mkdir() const;
|
||||||
|
|
||||||
// ------------------------------------------------------------------------
|
// ------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
|
@ -70,7 +70,7 @@ wxDirName& wxDirName::MakeAbsolute(const wxString& cwd)
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxDirName::Rmdir()
|
void wxDirName::Rmdir() const
|
||||||
{
|
{
|
||||||
if (!Exists())
|
if (!Exists())
|
||||||
return;
|
return;
|
||||||
|
@ -78,7 +78,7 @@ void wxDirName::Rmdir()
|
||||||
// TODO : Throw exception if operation failed? Do we care?
|
// TODO : Throw exception if operation failed? Do we care?
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxDirName::Mkdir()
|
bool wxDirName::Mkdir() const
|
||||||
{
|
{
|
||||||
// wxWidgets recurses directory creation for us.
|
// wxWidgets recurses directory creation for us.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue