DescriptionLots of random cleanups, mostly for native_theme_win.cc:
* Rename "max state" value to "num states" so it sounds less like it's the
largest valid state
* Shorten/simplify code
* Reduce indenting
* No else after return
* Use scoping objects where possible
* Return directly out of switches where possible
* Don't handle DCHECK failure
* Omit NOTREACHED messages (not necessary in tracking down bugs)
* "const" goes on same line as last function arg
* Order "disabled/hovered/normal/pressed" cases the same way every time
* Fix spelling errors
* Eliminate unnecessary {}s
BUG=none
TEST=none
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=282533
Patch Set 1 #
Total comments: 1
Patch Set 2 : Attempt build fix #Patch Set 3 : Build fix #2 #Patch Set 4 : Build fix #2, for reals #
Total comments: 12
Patch Set 5 : Review comments #Patch Set 6 : Tweak switches #
Messages
Total messages: 10 (0 generated)
|