use wxString instead of const wxChar* in wxFile's public API

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45807 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2007-05-04 19:04:19 +00:00
parent 62602fbd53
commit fcea31d51b
3 changed files with 20 additions and 20 deletions

View File

@@ -63,10 +63,10 @@ public:
// static functions
// ----------------
// check whether a regular file by this name exists
static bool Exists(const wxChar *name);
static bool Exists(const wxString& name);
// check whether we can access the given file in given mode
// (only read and write make sense here)
static bool Access(const wxChar *name, OpenMode mode);
static bool Access(const wxString& name, OpenMode mode);
// ctors
// -----
@@ -80,9 +80,9 @@ public:
// open/close
// create a new file (with the default value of bOverwrite, it will fail if
// the file already exists, otherwise it will overwrite it and succeed)
bool Create(const wxChar *szFileName, bool bOverwrite = false,
bool Create(const wxString& fileName, bool bOverwrite = false,
int access = wxS_DEFAULT);
bool Open(const wxChar *szFileName, OpenMode mode = read,
bool Open(const wxString& fileName, OpenMode mode = read,
int access = wxS_DEFAULT);
bool Close(); // Close is a NOP if not opened