DescriptionImprove GCM enum switch type safety
Now that most/all of our compilers warn when enum values are omitted
from a switch statement with no default case, it's better to omit the
default case so that anyone adding new enum values gets compile
failures if they forget to update one of the switches.
Also converted two lists of == FOO || == BAR || == BAZ to switches
for the same reason.
And reordered a few switches to match the enums.
Should have no functional changes, except that GetConnectionResetReasonString can now stringify NEW_HEARTBEAT_INTERVAL (an enum value that had been omitted).
BUG=none
Committed: https://crrev.com/133bfbad6055349368a955d16318c1997d39810b
Cr-Commit-Position: refs/heads/master@{#426303}
Patch Set 1 #Patch Set 2 : Rebase #Dependent Patchsets: Messages
Total messages: 19 (13 generated)
|