adding wxFALLTHROUGH where until now we had comments, allows for code-analysis support

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76399 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2014-04-26 17:36:32 +00:00
parent 6c6362401c
commit f18d7097da
55 changed files with 103 additions and 100 deletions

View File

@@ -147,7 +147,7 @@ bool wxFile::Access(const wxString& name, OpenMode mode)
{
default:
wxFAIL_MSG(wxT("bad wxFile::Access mode parameter."));
// fall through
wxFALLTHROUGH;
case read:
how = R_OK;
@@ -232,6 +232,7 @@ bool wxFile::Open(const wxString& fileName, OpenMode mode, int accessMode)
}
//else: fall through as write_append is the same as write if the
// file doesn't exist
wxFALLTHROUGH;
case write:
flags |= O_WRONLY | O_CREAT | O_TRUNC;
@@ -406,7 +407,7 @@ wxFileOffset wxFile::Seek(wxFileOffset ofs, wxSeekMode mode)
switch ( mode ) {
default:
wxFAIL_MSG(wxT("unknown seek origin"));
wxFALLTHROUGH;
case wxFromStart:
origin = SEEK_SET;
break;