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:
@@ -626,7 +626,7 @@ void wxCmdLineParser::SetDesc(const wxCmdLineEntryDesc *desc)
|
||||
|
||||
default:
|
||||
wxFAIL_MSG( wxT("unknown command line entry type") );
|
||||
// still fall through
|
||||
wxFALLTHROUGH;
|
||||
|
||||
case wxCMD_LINE_NONE:
|
||||
return;
|
||||
@@ -1089,7 +1089,7 @@ int wxCmdLineParser::Parse(bool showUsage)
|
||||
{
|
||||
default:
|
||||
wxFAIL_MSG( wxT("unknown option type") );
|
||||
// still fall through
|
||||
wxFALLTHROUGH;
|
||||
|
||||
case wxCMD_LINE_VAL_STRING:
|
||||
opt.SetStrVal(value);
|
||||
@@ -1470,7 +1470,7 @@ static wxString GetTypeName(wxCmdLineParamType type)
|
||||
{
|
||||
default:
|
||||
wxFAIL_MSG( wxT("unknown option type") );
|
||||
// still fall through
|
||||
wxFALLTHROUGH;
|
||||
|
||||
case wxCMD_LINE_VAL_STRING:
|
||||
s = _("str");
|
||||
|
||||
Reference in New Issue
Block a user