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:
@@ -52,7 +52,7 @@ const wxChar *wxTextBuffer::GetEOL(wxTextFileType type)
|
||||
switch ( type ) {
|
||||
default:
|
||||
wxFAIL_MSG(wxT("bad buffer type in wxTextBuffer::GetEOL."));
|
||||
// fall through nevertheless - we must return something...
|
||||
wxFALLTHROUGH; // fall through nevertheless - we must return something...
|
||||
|
||||
case wxTextFileType_None: return wxEmptyString;
|
||||
case wxTextFileType_Unix: return wxT("\n");
|
||||
|
||||
Reference in New Issue
Block a user