Fix "open mode" variables naming convention in wxTextFile
Start variable name with lower case letters for consistency. No real changes.
This commit is contained in:
@@ -36,7 +36,7 @@ protected:
|
||||
// implement the base class pure virtuals
|
||||
virtual bool OnExists() const wxOVERRIDE;
|
||||
virtual bool OnOpen(const wxString &strBufferName,
|
||||
wxTextBufferOpenMode OpenMode) wxOVERRIDE;
|
||||
wxTextBufferOpenMode openMode) wxOVERRIDE;
|
||||
virtual bool OnClose() wxOVERRIDE;
|
||||
virtual bool OnRead(const wxMBConv& conv) wxOVERRIDE;
|
||||
virtual bool OnWrite(wxTextFileType typeNew, const wxMBConv& conv) wxOVERRIDE;
|
||||
|
@@ -56,26 +56,26 @@ bool wxTextFile::OnExists() const
|
||||
}
|
||||
|
||||
|
||||
bool wxTextFile::OnOpen(const wxString &strBufferName, wxTextBufferOpenMode OpenMode)
|
||||
bool wxTextFile::OnOpen(const wxString &strBufferName, wxTextBufferOpenMode openMode)
|
||||
{
|
||||
wxFile::OpenMode FileOpenMode;
|
||||
wxFile::OpenMode fileOpenMode;
|
||||
|
||||
switch ( OpenMode )
|
||||
switch ( openMode )
|
||||
{
|
||||
default:
|
||||
wxFAIL_MSG( wxT("unknown open mode in wxTextFile::Open") );
|
||||
wxFALLTHROUGH;
|
||||
|
||||
case ReadAccess :
|
||||
FileOpenMode = wxFile::read;
|
||||
fileOpenMode = wxFile::read;
|
||||
break;
|
||||
|
||||
case WriteAccess :
|
||||
FileOpenMode = wxFile::write;
|
||||
fileOpenMode = wxFile::write;
|
||||
break;
|
||||
}
|
||||
|
||||
return m_file.Open(strBufferName, FileOpenMode);
|
||||
return m_file.Open(strBufferName, fileOpenMode);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user