diff --git a/common/Path.h b/common/Path.h index cd0f4cd2ce..369eac707c 100644 --- a/common/Path.h +++ b/common/Path.h @@ -166,8 +166,8 @@ public: bool SetCwd() { return wxFileName::SetCwd(); } // wxWidgets is missing the const qualifier for this one! Shame! - void Rmdir(); - bool Mkdir(); + void Rmdir() const; + bool Mkdir() const; // ------------------------------------------------------------------------ diff --git a/common/PathUtils.cpp b/common/PathUtils.cpp index dd6f0328e3..1b410ba028 100644 --- a/common/PathUtils.cpp +++ b/common/PathUtils.cpp @@ -70,7 +70,7 @@ wxDirName& wxDirName::MakeAbsolute(const wxString& cwd) return *this; } -void wxDirName::Rmdir() +void wxDirName::Rmdir() const { if (!Exists()) return; @@ -78,7 +78,7 @@ void wxDirName::Rmdir() // TODO : Throw exception if operation failed? Do we care? } -bool wxDirName::Mkdir() +bool wxDirName::Mkdir() const { // wxWidgets recurses directory creation for us.