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
This commit is contained in:
Vadim Zeitlin 2009-06-11 16:11:07 +00:00
parent 588ca87143
commit 89391a4ea1
3 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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.

View File

@ -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 );
}