mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-23 02:05:42 +00:00
6bc92def07
Currently, editor code uses following style (or similar style) in a lot of places: if (foo) { } else { } This patch fixes this as conforming to our coding rules, i.e., it becomes: if (foo) { } else { } Additionally, this fixes other odd control statements in the files which include above issue because it's difficult to find following issues with searching the files: * if (foo) bar; * if (foo) { bar; } * if (foo) bar; Finally, if it becomes much simpler than current code, this patch rewrites existing code with "early return style". But this case is only a few places because this is risky. MozReview-Commit-ID: 2Gs26goWXrF --HG-- extra : rebase_source : 603f9003a3566b3203bdeb27dc73ac33502d2853 |
||
---|---|---|
.. | ||
crashtests | ||
res | ||
test | ||
moz.build | ||
nsComposerCommands.cpp | ||
nsComposerCommands.h | ||
nsComposerCommandsUpdater.cpp | ||
nsComposerCommandsUpdater.h | ||
nsComposerController.cpp | ||
nsComposerController.h | ||
nsComposerDocumentCommands.cpp | ||
nsComposerRegistration.cpp | ||
nsComposeTxtSrvFilter.cpp | ||
nsComposeTxtSrvFilter.h | ||
nsEditingSession.cpp | ||
nsEditingSession.h | ||
nsEditorSpellCheck.cpp | ||
nsEditorSpellCheck.h | ||
nsIEditingSession.idl |