Avoid -Wimplicit-fallthrough warnings
This commit is contained in:
@@ -817,6 +817,7 @@ int CompareFragmentNatural(const wxStringFragment& lhs, const wxStringFragment&
|
|||||||
case wxStringFragment::LetterOrSymbol:
|
case wxStringFragment::LetterOrSymbol:
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
case wxStringFragment::SpaceOrPunct:
|
case wxStringFragment::SpaceOrPunct:
|
||||||
switch ( rhs.type )
|
switch ( rhs.type )
|
||||||
@@ -829,6 +830,7 @@ int CompareFragmentNatural(const wxStringFragment& lhs, const wxStringFragment&
|
|||||||
case wxStringFragment::LetterOrSymbol:
|
case wxStringFragment::LetterOrSymbol:
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
case wxStringFragment::Digit:
|
case wxStringFragment::Digit:
|
||||||
switch ( rhs.type )
|
switch ( rhs.type )
|
||||||
@@ -846,6 +848,7 @@ int CompareFragmentNatural(const wxStringFragment& lhs, const wxStringFragment&
|
|||||||
case wxStringFragment::LetterOrSymbol:
|
case wxStringFragment::LetterOrSymbol:
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
case wxStringFragment::LetterOrSymbol:
|
case wxStringFragment::LetterOrSymbol:
|
||||||
switch ( rhs.type )
|
switch ( rhs.type )
|
||||||
@@ -857,6 +860,7 @@ int CompareFragmentNatural(const wxStringFragment& lhs, const wxStringFragment&
|
|||||||
case wxStringFragment::LetterOrSymbol:
|
case wxStringFragment::LetterOrSymbol:
|
||||||
return wxStrcoll_String(lhs.text.Lower(), rhs.text.Lower());
|
return wxStrcoll_String(lhs.text.Lower(), rhs.text.Lower());
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
// all possible cases should be covered by the switch above
|
// all possible cases should be covered by the switch above
|
||||||
|
Reference in New Issue
Block a user