]> git.saurik.com Git - wxWidgets.git/commitdiff
make wxFileName::{Mk,Rm}dir() const (closes #10868)
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 11 Jun 2009 16:11:07 +0000 (16:11 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 11 Jun 2009 16:11:07 +0000 (16:11 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61002 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/filename.h
interface/wx/filename.h
src/common/filename.cpp

index bdf955e0640f4508cac01bbf7f383b7c3d36d9b3..c5edc822c4ea942f4b2bfd4cd445da3fc06ab941 100644 (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
index 72bf9273e895fcbebe67984c04bc22c19660c551..4e1697c7b817bc76f9be68768e6612a3d26fa733 100644 (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.
index f16ae7127bf9ab7af950bd6d2e656d52b2bb1371..2f668ec45727f3df5033805b604c479e31803047 100644 (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 );
 }