changed wxFFileOutput/InputStream ctor 'mode' argument to wxString

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46537 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík 2007-06-19 11:57:48 +00:00
parent 35f1f4f7ea
commit dc65c743e5
3 changed files with 6 additions and 6 deletions

View File

@ -31,7 +31,7 @@ can seek beyond the end of the stream (file) and will thus not return
\membersection{wxFFileInputStream::wxFFileInputStream}\label{wxffileinputstreamctor}
\func{}{wxFFileInputStream}{\param{const wxString\&}{ filename}, \param{const wxChar *}{ mode = "rb"}}
\func{}{wxFFileInputStream}{\param{const wxString\&}{ filename}, \param{const wxString\&}{ mode = "rb"}}
Opens the specified file using its {\it filename} name using the specified mode.
@ -88,7 +88,7 @@ can seek beyond the end of the stream (file) and will thus not return
\membersection{wxFFileOutputStream::wxFFileOutputStream}\label{wxffileoutputstreamctor}
\func{}{wxFFileOutputStream}{\param{const wxString\&}{ filename}, \param{const wxChar *}{ mode="w+b"}}
\func{}{wxFFileOutputStream}{\param{const wxString\&}{ filename}, \param{const wxString\&}{ mode="w+b"}}
Opens the file with the given {\it filename} name in the specified mode.

View File

@ -132,7 +132,7 @@ private:
class WXDLLIMPEXP_BASE wxFFileInputStream : public wxInputStream
{
public:
wxFFileInputStream(const wxString& fileName, const wxChar *mode = _T("rb"));
wxFFileInputStream(const wxString& fileName, const wxString& mode = "rb");
wxFFileInputStream(wxFFile& file);
wxFFileInputStream(FILE *file);
virtual ~wxFFileInputStream();
@ -160,7 +160,7 @@ protected:
class WXDLLIMPEXP_BASE wxFFileOutputStream : public wxOutputStream
{
public:
wxFFileOutputStream(const wxString& fileName, const wxChar *mode = _T("w+b"));
wxFFileOutputStream(const wxString& fileName, const wxString& mode = "w+b");
wxFFileOutputStream(wxFFile& file);
wxFFileOutputStream(FILE *file);
virtual ~wxFFileOutputStream();

View File

@ -234,7 +234,7 @@ wxFileStream::wxFileStream(const wxString& fileName)
// ----------------------------------------------------------------------------
wxFFileInputStream::wxFFileInputStream(const wxString& fileName,
const wxChar *mode)
const wxString& mode)
: wxInputStream()
{
m_file = new wxFFile(fileName, mode);
@ -310,7 +310,7 @@ bool wxFFileInputStream::IsOk() const
// ----------------------------------------------------------------------------
wxFFileOutputStream::wxFFileOutputStream(const wxString& fileName,
const wxChar *mode)
const wxString& mode)
{
m_file = new wxFFile(fileName, mode);
m_file_destroy = true;