From 89391a4ea111fcd1129d870e70fc0efc6e946fe9 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 11 Jun 2009 16:11:07 +0000 Subject: [PATCH] make wxFileName::{Mk,Rm}dir() const (closes #10868) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61002 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/filename.h | 4 ++-- interface/wx/filename.h | 4 ++-- src/common/filename.cpp | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/wx/filename.h b/include/wx/filename.h index bdf955e064..c5edc822c4 100644 --- a/include/wx/filename.h +++ b/include/wx/filename.h @@ -316,11 +316,11 @@ public: #endif // wxUSE_FFILE // directory creation and removal. - bool Mkdir(int perm = wxS_DIR_DEFAULT, int flags = 0); + bool Mkdir(int perm = wxS_DIR_DEFAULT, int flags = 0) const; static bool Mkdir(const wxString &dir, int perm = wxS_DIR_DEFAULT, int flags = 0); - bool Rmdir(int flags = 0); + bool Rmdir(int flags = 0) const; static bool Rmdir(const wxString &dir, int flags = 0); // operations on the path diff --git a/interface/wx/filename.h b/interface/wx/filename.h index 72bf9273e8..4e1697c7b8 100644 --- a/interface/wx/filename.h +++ b/interface/wx/filename.h @@ -892,7 +892,7 @@ public: @return Returns @true if the directory was successfully created, @false otherwise. */ - bool Mkdir(int perm = wxS_DIR_DEFAULT, int flags = 0); + bool Mkdir(int perm = wxS_DIR_DEFAULT, int flags = 0) const; /** Creates a directory. @@ -1009,7 +1009,7 @@ public: @return Returns @true if the directory was successfully deleted, @false otherwise. */ - bool Rmdir(int flags = 0); + bool Rmdir(int flags = 0) const; /** Deletes the specified directory from the file system. diff --git a/src/common/filename.cpp b/src/common/filename.cpp index f16ae7127b..2f668ec457 100644 --- a/src/common/filename.cpp +++ b/src/common/filename.cpp @@ -1073,7 +1073,7 @@ wxString wxFileName::GetTempDir() return dir; } -bool wxFileName::Mkdir( int perm, int flags ) +bool wxFileName::Mkdir( int perm, int flags ) const { return wxFileName::Mkdir(GetPath(), perm, flags); } @@ -1117,7 +1117,7 @@ bool wxFileName::Mkdir( const wxString& dir, int perm, int flags ) return ::wxMkdir( dir, perm ); } -bool wxFileName::Rmdir(int flags) +bool wxFileName::Rmdir(int flags) const { return wxFileName::Rmdir( GetPath(), flags ); } -- 2.45.2