From 324a3d09e67a0bbfee5876d74fa79e49a386853d Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Tue, 17 Aug 2021 23:43:31 +1000 Subject: [PATCH] PathUtils: Make wxDirName::{Rmdir,Mkdir} const --- common/Path.h | 4 ++-- common/PathUtils.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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.